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 fc70a72 commit 8fac872Copy full SHA for 8fac872
application/src/main/java/org/togetherjava/tjbot/features/basic/Starboard.java
@@ -47,9 +47,8 @@ public void onMessageReactionAdd(@NotNull MessageReactionAddEvent event) {
47
config.getChannelName());
48
return;
49
}
50
- if (database.read(context -> context.selectFrom(STARBOARD_MESSAGES)
51
- .fetch("message_id")
52
- .contains(event.getMessageIdLong()))) {
+ if (database.read(context -> context.fetchExists(context.selectFrom(STARBOARD_MESSAGES)
+ .where(STARBOARD_MESSAGES.MESSAGE_ID.eq(event.getMessageIdLong()))))) {
53
database.write(context -> context.newRecord(STARBOARD_MESSAGES)
54
.setMessageId(event.getMessageIdLong()));
55
event.retrieveMessage()
0 commit comments