0

Fixed handling of invalid emojis.

This commit is contained in:
Logan Fick
2019-06-25 10:27:14 -04:00
parent fdb1c0b093
commit 766b0d0ad5
2 changed files with 2 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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.");
}
}