Fixed handling of invalid emojis.
This commit is contained in:
@@ -48,6 +48,7 @@ public final class CommandResponse {
|
||||
Checks.notEmpty(response, "Response");
|
||||
|
||||
this.emoji = EmojiManager.getForAlias(emoji);
|
||||
Checks.notNull(this.emoji, "Valid Emoji");
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,6 @@ public final class Shuffle implements Command {
|
||||
}
|
||||
|
||||
scheduler.shuffleQueue();
|
||||
return new CommandResponse("salad", executor.getAsMention() + " shuffled the queue.");
|
||||
return new CommandResponse("green_salad", executor.getAsMention() + " shuffled the queue.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user