This commit is contained in:
Chayapak 2023-04-12 15:16:50 +07:00
parent 529befc718
commit c3012fd799

View file

@ -161,7 +161,7 @@ public class MusicCommand implements Command {
public Component loop (CommandContext context, String[] args) {
final Bot bot = context.bot();
if (args[1] == null) return Component.text("Invalid argument").color(NamedTextColor.RED);
if (args.length < 2) return Component.text("Invalid argument").color(NamedTextColor.RED);
Loop loop;
switch (args[1]) {