mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-13 08:00:37 +00:00
Lavalink4net (#3)
* Update readme.md Test Migrate from Victoria * Small fix --------- Co-authored-by: Myx <info@azaaxin.com>
This commit is contained in:
@@ -9,22 +9,22 @@ public static class Option
|
||||
|
||||
public static class Command
|
||||
{
|
||||
public static class Hello
|
||||
{
|
||||
public const string Name = "hello";
|
||||
public const string Description = "Say hello to the bot!";
|
||||
}
|
||||
|
||||
public static class Goodbye
|
||||
{
|
||||
public const string Name = "goodbye";
|
||||
public const string Description = "Say goodbye to the bot!";
|
||||
}
|
||||
// public static class Hello
|
||||
// {
|
||||
// public const string Name = "hello";
|
||||
// public const string Description = "Say hello to the bot!";
|
||||
// }
|
||||
//
|
||||
// public static class Goodbye
|
||||
// {
|
||||
// public const string Name = "goodbye";
|
||||
// public const string Description = "Say goodbye to the bot!";
|
||||
// }
|
||||
|
||||
public static class Join
|
||||
public static class Disconnect
|
||||
{
|
||||
public const string Name = "join";
|
||||
public const string Description = "Join the voice channel!";
|
||||
public const string Name = "disconnect";
|
||||
public const string Description = "Disconnect from the voice channel!";
|
||||
}
|
||||
|
||||
public static class Skip
|
||||
@@ -33,10 +33,16 @@ public static class Command
|
||||
public const string Description = "Skip the current song!";
|
||||
}
|
||||
|
||||
public static class Stop
|
||||
public static class Resume
|
||||
{
|
||||
public const string Name = "stop";
|
||||
public const string Description = "Stop the music!";
|
||||
public const string Name = "resume";
|
||||
public const string Description = "Resume the music!";
|
||||
}
|
||||
|
||||
public static class Pause
|
||||
{
|
||||
public const string Name = "pause";
|
||||
public const string Description = "Pause the music!";
|
||||
}
|
||||
|
||||
public static class Play
|
||||
|
||||
@@ -42,7 +42,6 @@ public class SlashCommandBuilder(
|
||||
|
||||
private static async Task RemoveUnusedCommands(string[] commands, IEnumerable<SocketApplicationCommand> registeredCommands)
|
||||
{
|
||||
// Remove commands from Discord(registeredCommands) that are not in the list of commands
|
||||
foreach(var command in registeredCommands)
|
||||
{
|
||||
if (commands.Contains(command.Name))
|
||||
|
||||
@@ -7,12 +7,12 @@ public static class SlashCommandRegistration
|
||||
{
|
||||
public static void RegisterCommands(this DiscordSocketClient client)
|
||||
{
|
||||
RegisterCommand(client, Command.Hello.Name, Command.Hello.Description);
|
||||
RegisterCommand(client, Command.Goodbye.Name, Command.Goodbye.Description);
|
||||
RegisterCommand(client, Command.Join.Name, Command.Join.Description);
|
||||
RegisterCommand(client, Command.Resume.Name, Command.Resume.Description);
|
||||
RegisterCommand(client, Command.Pause.Name, Command.Pause.Description);
|
||||
RegisterCommand(client, Command.Disconnect.Name, Command.Disconnect.Description);
|
||||
RegisterCommand(client, Command.Skip.Name, Command.Skip.Description);
|
||||
RegisterCommand(client, Command.Play.Name, Command.Play.Description, Command.Play.Options);
|
||||
RegisterCommand(client, Command.Stop.Name, Command.Stop.Description);
|
||||
RegisterCommand(client, Command.Resume.Name, Command.Resume.Description);
|
||||
}
|
||||
|
||||
private static void RegisterCommand(
|
||||
|
||||
Reference in New Issue
Block a user