-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commands.cs
26 lines (23 loc) · 1.15 KB
/
Commands.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using DSharpPlus;
using DSharpPlus.SlashCommands;
using DSharpPlus.SlashCommands.Attributes;
using System.Threading.Tasks;
namespace OMNI.Commands
{
[SlashCommandGroup("omni", "All of OMNI bot's commands.")]
public class OmniCommands : ApplicationCommandModule
{
[SlashCommand("setup", "[ADMIN ONLY] Setup the ticketing system.")]
[SlashRequirePermissions(Permissions.Administrator)]
public async Task SetupTicketingSystem(InteractionContext ctx)
{
/*await ctx.CreateResponseAsync(InteractionResponseType.DeferredChannelMessageWithSource);
var openTicket = new DiscordButtonComponent(ButtonStyle.Primary, "create", "Create Support Thread");
var closeTicket = new DiscordButtonComponent(ButtonStyle.Danger, "close", "Close Existing Thread");
await ctx.FollowUpAsync(new DiscordFollowupMessageBuilder().AddComponents(openTicket, closeTicket).AddEmbed(new DiscordEmbedBuilder()
.WithColor(DiscordColor.CornflowerBlue)
.WithTitle("❓ Support Ticket")
.WithDescription("Click below to start a new support thread!")));*/
}
}
}