From c1d775c9d0f10006e6c0e01e46cffb4cbff35c0b Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 04:43:53 +0100 Subject: [PATCH] maybe fix boost event?? --- src/main/java/cc/fascinated/bat/service/DiscordService.java | 3 ++- src/main/java/cc/fascinated/bat/service/EventService.java | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/service/DiscordService.java b/src/main/java/cc/fascinated/bat/service/DiscordService.java index 9cd702f..497da8d 100644 --- a/src/main/java/cc/fascinated/bat/service/DiscordService.java +++ b/src/main/java/cc/fascinated/bat/service/DiscordService.java @@ -52,7 +52,8 @@ public class DiscordService { GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_EMOJIS_AND_STICKERS, GatewayIntent.GUILD_PRESENCES, - GatewayIntent.GUILD_VOICE_STATES + GatewayIntent.GUILD_VOICE_STATES, + GatewayIntent.GUILD_INVITES )) .disableCache( CacheFlag.ACTIVITY, diff --git a/src/main/java/cc/fascinated/bat/service/EventService.java b/src/main/java/cc/fascinated/bat/service/EventService.java index 872352d..649b50a 100644 --- a/src/main/java/cc/fascinated/bat/service/EventService.java +++ b/src/main/java/cc/fascinated/bat/service/EventService.java @@ -341,7 +341,6 @@ public class EventService extends ListenerAdapter { if (event.getNewTimeBoosted() != null) { for (EventListener listener : LISTENERS) { listener.onGuildMemberBoostAdd(guild, user, event.getOldTimeBoosted(), event.getNewTimeBoosted(), event); - return; } } @@ -349,7 +348,6 @@ public class EventService extends ListenerAdapter { if (event.getOldTimeBoosted() != null) { for (EventListener listener : LISTENERS) { listener.onGuildMemberBoostRemove(guild, user, event.getOldTimeBoosted(), event.getNewTimeBoosted(), event); - return; } } }