From 3879770d9b03fd625d794b2aa33ee3bf2aef0239 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 6 Oct 2024 02:00:59 +0200 Subject: [PATCH] fix: add descriptions to key role commands --- Catalogger.Backend/Bot/Commands/KeyRoleCommands.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Catalogger.Backend/Bot/Commands/KeyRoleCommands.cs b/Catalogger.Backend/Bot/Commands/KeyRoleCommands.cs index 266fed9..c032920 100644 --- a/Catalogger.Backend/Bot/Commands/KeyRoleCommands.cs +++ b/Catalogger.Backend/Bot/Commands/KeyRoleCommands.cs @@ -51,7 +51,8 @@ public class KeyRoleCommands( [Command("add")] [Description("Add a new key role.")] - public async Task AddKeyRoleAsync([DiscordTypeHint(TypeHint.Role)] Snowflake roleId) + public async Task AddKeyRoleAsync( + [Description("The role to add.")] [DiscordTypeHint(TypeHint.Role)] Snowflake roleId) { var (_, guildId) = contextInjection.GetUserAndGuild(); var role = roleCache.GuildRoles(guildId).FirstOrDefault(r => r.ID == roleId); @@ -70,7 +71,9 @@ public class KeyRoleCommands( [Command("remove")] [Description("Remove a key role.")] - public async Task RemoveKeyRoleAsync([DiscordTypeHint(TypeHint.Role)] Snowflake roleId) + public async Task RemoveKeyRoleAsync( + [Description("The role to remove.")] [DiscordTypeHint(TypeHint.Role)] + Snowflake roleId) { var (_, guildId) = contextInjection.GetUserAndGuild(); var role = roleCache.GuildRoles(guildId).FirstOrDefault(r => r.ID == roleId);