diff --git a/src/Commands/Common/AvatarCommand.cs b/src/Commands/Common/AvatarCommand.cs index 8ae05cd..e5e0634 100644 --- a/src/Commands/Common/AvatarCommand.cs +++ b/src/Commands/Common/AvatarCommand.cs @@ -1,3 +1,4 @@ +using System.ComponentModel; using System.Threading.Tasks; using DSharpPlus; using DSharpPlus.Commands; @@ -31,7 +32,7 @@ public sealed class AvatarCommand /// The format of the image to fetch. Valid options include: png, gif, jpeg, webp, or auto. Auto will display the gif when available and fallback to png when it's not. /// A number between 16 and 4096 that represents the dimensions of the image to fetch. If no dimensions are provided, the command will default to 1024. The dimensions must be a power of two. /// Nothing - [Command("user"), DefaultGroupCommand, SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.UserContextMenu)] + [Command("user"), DisplayName("Avatar"), DefaultGroupCommand, SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.UserContextMenu)] public ValueTask UserAsync(CommandContext context, DiscordUser? user = null, ImageFormat imageFormat = ImageFormat.Auto, ushort imageDimensions = 0) { user ??= context.User; diff --git a/src/Commands/Common/InfoCommand/InfoCommand.User.cs b/src/Commands/Common/InfoCommand/InfoCommand.User.cs index bc88871..0de1a37 100644 --- a/src/Commands/Common/InfoCommand/InfoCommand.User.cs +++ b/src/Commands/Common/InfoCommand/InfoCommand.User.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.ComponentModel; using System.Globalization; using System.Linq; using System.Threading.Tasks; @@ -19,7 +20,7 @@ public sealed partial class InfoCommand /// Sends information about the provided user. /// /// Which user to get information about. Leave empty to get information about yourself. - [Command("user"), TextAlias("member"), SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.UserContextMenu)] + [Command("user"), TextAlias("member"), DisplayName("Info User"), SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.UserContextMenu)] public static async Task UserInfoAsync(CommandContext context, DiscordUser? user = null) { user ??= context.User; diff --git a/src/Commands/Common/RawCommand.cs b/src/Commands/Common/RawCommand.cs index b35f8da..74aec2f 100644 --- a/src/Commands/Common/RawCommand.cs +++ b/src/Commands/Common/RawCommand.cs @@ -1,3 +1,4 @@ +using System.ComponentModel; using System.IO; using System.Text; using System.Threading.Tasks; @@ -23,7 +24,7 @@ public static class RawCommand /// /// The message to get the raw content of. /// Whether to return the raw content as JSON. - [Command("raw"), TextAlias("print"), SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.MessageContextMenu), RequirePermissions(DiscordPermissions.ReadMessageHistory | DiscordPermissions.EmbedLinks, DiscordPermissions.None)] + [Command("raw"), TextAlias("print"), DisplayName("Raw"), SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.MessageContextMenu), RequirePermissions(DiscordPermissions.ReadMessageHistory | DiscordPermissions.EmbedLinks, DiscordPermissions.None)] public static ValueTask ExecuteAsync(CommandContext context, DiscordMessage? message = null, bool jsonfied = false) { if (context is TextCommandContext textContext && message is null) diff --git a/src/Commands/Common/RetryCommand.cs b/src/Commands/Common/RetryCommand.cs index ee294f5..acf4e9f 100644 --- a/src/Commands/Common/RetryCommand.cs +++ b/src/Commands/Common/RetryCommand.cs @@ -1,3 +1,4 @@ +using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using DSharpPlus.Commands; @@ -23,7 +24,7 @@ public static class RetryCommand /// /// The message to re-run. /// Who to run the command as. - [Command("retry"), TextAlias("rerun"), SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.MessageContextMenu)] + [Command("retry"), TextAlias("rerun"), DisplayName("Retry"), SlashCommandTypes(DiscordApplicationCommandType.SlashCommand, DiscordApplicationCommandType.MessageContextMenu)] public static async ValueTask RetryAsync(CommandContext context, DiscordMessage message, DiscordUser? asWho = null) { if (context is SlashCommandContext slashCommandContext)