Skip to content

Commit 26c2c90

Browse files
committed
SuggestionsUpDownVoter should have UNKNOWN_MESSAGE exception gracefully with an INFO log instead #1414
Refactored and idomaticized -- oops updated to make sure its similar via both react and create thread
1 parent 775ad21 commit 26c2c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/basic/SuggestionsUpDownVoter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private static void reactWith(String emojiName, Emoji fallbackEmoji, Guild guild
100100
"Unable to vote on a suggestion with the configured emoji ('{}'), using fallback instead.",
101101
emojiName);
102102
return message.addReaction(fallbackEmoji);
103-
}).queue(ignored -> {
103+
}).queue(_ -> {
104104
}, exception -> handleReactionFailure(exception, message.getIdLong()));
105105
}
106106

0 commit comments

Comments
 (0)