Update command documentation

This commit is contained in:
Toastie 2024-12-27 18:06:25 +13:00
parent bb9ef65e42
commit 384f046915
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ public class CreateSelectionBoxPanelCommand
[Command("createselectionboxpanel")] [Command("createselectionboxpanel")]
[Description("Creates a selection box which users can use to open new tickets in specific categories.")] [Description("Creates a selection box which users can use to open new tickets in specific categories.")]
public async Task OnExecute(SlashCommandContext command, public async Task OnExecute(SlashCommandContext command,
[Parameter("message")][Description("(Optional) The message to show in the selection box.")] string message = null) [Parameter("placeholder")][Description("(Optional) The message to show in the selection box.")] string message = null)
{ {
DiscordMessageBuilder builder = new DiscordMessageBuilder() DiscordMessageBuilder builder = new DiscordMessageBuilder()
.WithContent(" ") .WithContent(" ")

View file

@ -16,7 +16,7 @@ public class ListCommand
[Command("list")] [Command("list")]
[Description("Lists tickets opened by a user.")] [Description("Lists tickets opened by a user.")]
public async Task OnExecute(SlashCommandContext command, public async Task OnExecute(SlashCommandContext command,
[Parameter("user")][Description("(Optional) The user to get tickets by, yourself by default.")] DiscordUser user = null) [Parameter("user")][Description("(Optional) The user whose tickets to get, yourself by default.")] DiscordUser user = null)
{ {
DiscordUser listUser = user == null ? command.User : user; DiscordUser listUser = user == null ? command.User : user;

View file

@ -25,7 +25,7 @@ public class StatusCommand
.AddField("Open tickets:", openTickets + "", true) .AddField("Open tickets:", openTickets + "", true)
.AddField("Closed tickets:", closedTickets + " ", true) .AddField("Closed tickets:", closedTickets + " ", true)
.AddField("Report bugs:", "[Toastielab Issues](https://toastielab.dev/Emotions-stuff/SupportChild/issues)", true) .AddField("Report bugs:", "[Toastielab Issues](https://toastielab.dev/Emotions-stuff/SupportChild/issues)", true)
.AddField("Commands:", "[Toastielab Repository](https://toastielab.dev/Emotions-stuff/SupportChild)", true); .AddField("Commands:", "[Toastielab Repository](https://toastielab.dev/Emotions-stuff/SupportChild/src/branch/main/docs/Commands.md)", true);
await command.RespondAsync(botInfo); await command.RespondAsync(botInfo);
} }
} }