Update command documentation
This commit is contained in:
parent
bb9ef65e42
commit
384f046915
3 changed files with 3 additions and 3 deletions
|
@ -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(" ")
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue