fix: add descriptions to key role commands
This commit is contained in:
parent
b31a20bb81
commit
3879770d9b
1 changed files with 5 additions and 2 deletions
|
|
@ -51,7 +51,8 @@ public class KeyRoleCommands(
|
|||
|
||||
[Command("add")]
|
||||
[Description("Add a new key role.")]
|
||||
public async Task<IResult> AddKeyRoleAsync([DiscordTypeHint(TypeHint.Role)] Snowflake roleId)
|
||||
public async Task<IResult> 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<IResult> RemoveKeyRoleAsync([DiscordTypeHint(TypeHint.Role)] Snowflake roleId)
|
||||
public async Task<IResult> 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue