fix: add missing option names/descriptions

This commit is contained in:
sam 2024-10-29 22:18:30 +01:00
parent a34b5479c0
commit c28f987240
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
2 changed files with 13 additions and 4 deletions

View file

@ -76,7 +76,10 @@ public class KeyRoleCommands(
[Command("add")]
[Description("Add a new key role.")]
public async Task<IResult> AddKeyRoleAsync(
[Description("The role to add.")] [DiscordTypeHint(TypeHint.Role)] Snowflake roleId
[Option("role")]
[Description("The role to add.")]
[DiscordTypeHint(TypeHint.Role)]
Snowflake roleId
)
{
var (_, guildId) = contextInjection.GetUserAndGuild();
@ -98,7 +101,10 @@ public class KeyRoleCommands(
[Command("remove")]
[Description("Remove a key role.")]
public async Task<IResult> RemoveKeyRoleAsync(
[Description("The role to remove.")] [DiscordTypeHint(TypeHint.Role)] Snowflake roleId
[Option("role")]
[Description("The role to remove.")]
[DiscordTypeHint(TypeHint.Role)]
Snowflake roleId
)
{
var (_, guildId) = contextInjection.GetUserAndGuild();