Check if user is bot

This commit is contained in:
Joel 2021-02-21 23:25:05 +01:00
parent 549ca47d61
commit ba40c09981

@ -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;