From ba40c09981b27f3d2a14a9b7658a9c0ee79a2788 Mon Sep 17 00:00:00 2001 From: Joel Date: Sun, 21 Feb 2021 23:25:05 +0100 Subject: [PATCH] Check if user is bot --- .../zone/themcgamer/discordbot/events/MainGuildListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discordbot/src/main/java/zone/themcgamer/discordbot/events/MainGuildListener.java b/discordbot/src/main/java/zone/themcgamer/discordbot/events/MainGuildListener.java index 1f0ec07..01f60ab 100644 --- a/discordbot/src/main/java/zone/themcgamer/discordbot/events/MainGuildListener.java +++ b/discordbot/src/main/java/zone/themcgamer/discordbot/events/MainGuildListener.java @@ -81,6 +81,8 @@ public class MainGuildListener extends ListenerAdapter { public void onGuildMessageReactionAdd(@Nonnull GuildMessageReactionAddEvent event) { Guild guild = event.getGuild(); Member member = event.getMember(); + if (event.getUser().isBot()) + return; if (!guild.getId().equals(BotConstants.MAIN_GUILD_ID)) return;