Skip to content

Commit

Permalink
Fix silly
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Nov 1, 2024
1 parent 109a662 commit 4f61203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/de/presti/ree6/events/OtherEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ public void onMessageReactionAdd(@NotNull MessageReactionAddEvent event) {

if (!event.getGuild().getSelfMember().hasAccess(event.getGuildChannel())) return;

if (!event.getGuild().getSelfMember().hasPermission(event.getGuildChannel(), Permission.MESSAGE_HISTORY)) return;

event.retrieveMessage().queue(message -> {

EmojiUnion emojiUnion = event.getReaction().getEmoji();
Expand Down

0 comments on commit 4f61203

Please sign in to comment.