We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5c7da commit 7f994e1Copy full SHA for 7f994e1
application/src/main/java/org/togetherjava/tjbot/commands/reminder/ReminderCommand.java
@@ -142,8 +142,7 @@ public void onAutoComplete(CommandAutoCompleteInteractionEvent event) {
142
AutoCompleteQuery focusedOption = event.getFocusedOption();
143
144
if (!focusedOption.getName().equals(CANCEL_REMINDER_OPTION)) {
145
- throw new IllegalArgumentException(
146
- "Unexpected option, was : " + focusedOption.getName());
+ throw new AssertionError("Unexpected option, was : " + focusedOption.getName());
147
}
148
149
List<String> pendingReminders = getPendingReminders(event.getGuild(), event.getUser())
0 commit comments