mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-11 15:19:53 +00:00
Add Join and Play handlers, Expand Command Builder functionality
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
using Discord;
|
||||
|
||||
namespace Lunaris2.SlashCommand;
|
||||
|
||||
public static class Option
|
||||
{
|
||||
public const string Input = "input";
|
||||
}
|
||||
|
||||
public static class Command
|
||||
{
|
||||
public static class Hello
|
||||
@@ -14,6 +21,29 @@ public static class Command
|
||||
public const string Description = "Say goodbye to the bot!";
|
||||
}
|
||||
|
||||
public static class Join
|
||||
{
|
||||
public const string Name = "join";
|
||||
public const string Description = "Join the voice channel!";
|
||||
}
|
||||
|
||||
public static class Play
|
||||
{
|
||||
public const string Name = "play";
|
||||
public const string Description = "Play a song!";
|
||||
|
||||
public static readonly List<SlashCommandOptionBuilder> Options = new()
|
||||
{
|
||||
new SlashCommandOptionBuilder
|
||||
{
|
||||
Name = "input",
|
||||
Description = "The song you want to play",
|
||||
Type = ApplicationCommandOptionType.String,
|
||||
IsRequired = true
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
public static string[] GetAllCommands()
|
||||
{
|
||||
return typeof(Command)
|
||||
|
||||
Reference in New Issue
Block a user