Sort commands alphabetically
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f156727413
commit
c6ee0f3ae1
|
@ -15,10 +15,10 @@ public class SlashCommandListener extends ListenerAdapter
|
||||||
public void onSlashCommandInteraction(@NotNull SlashCommandInteractionEvent event)
|
public void onSlashCommandInteraction(@NotNull SlashCommandInteractionEvent event)
|
||||||
{
|
{
|
||||||
switch (event.getName().toLowerCase()) {
|
switch (event.getName().toLowerCase()) {
|
||||||
case "ping" -> new PingCommand(event);
|
|
||||||
case "die" -> new DieCommand(event);
|
|
||||||
case "coinflip" -> new CoinFlipCommand(event);
|
|
||||||
case "clear" -> new ClearChatCommand(event);
|
case "clear" -> new ClearChatCommand(event);
|
||||||
|
case "coinflip" -> new CoinFlipCommand(event);
|
||||||
|
case "die" -> new DieCommand(event);
|
||||||
|
case "ping" -> new PingCommand(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue