maybe fix boost event??

This commit is contained in:
Lee 2024-07-04 04:43:53 +01:00
parent a4e3598986
commit c1d775c9d0
2 changed files with 2 additions and 3 deletions

@ -52,7 +52,8 @@ public class DiscordService {
GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_MEMBERS,
GatewayIntent.GUILD_EMOJIS_AND_STICKERS, GatewayIntent.GUILD_EMOJIS_AND_STICKERS,
GatewayIntent.GUILD_PRESENCES, GatewayIntent.GUILD_PRESENCES,
GatewayIntent.GUILD_VOICE_STATES GatewayIntent.GUILD_VOICE_STATES,
GatewayIntent.GUILD_INVITES
)) ))
.disableCache( .disableCache(
CacheFlag.ACTIVITY, CacheFlag.ACTIVITY,

@ -341,7 +341,6 @@ public class EventService extends ListenerAdapter {
if (event.getNewTimeBoosted() != null) { if (event.getNewTimeBoosted() != null) {
for (EventListener listener : LISTENERS) { for (EventListener listener : LISTENERS) {
listener.onGuildMemberBoostAdd(guild, user, event.getOldTimeBoosted(), event.getNewTimeBoosted(), event); listener.onGuildMemberBoostAdd(guild, user, event.getOldTimeBoosted(), event.getNewTimeBoosted(), event);
return;
} }
} }
@ -349,7 +348,6 @@ public class EventService extends ListenerAdapter {
if (event.getOldTimeBoosted() != null) { if (event.getOldTimeBoosted() != null) {
for (EventListener listener : LISTENERS) { for (EventListener listener : LISTENERS) {
listener.onGuildMemberBoostRemove(guild, user, event.getOldTimeBoosted(), event.getNewTimeBoosted(), event); listener.onGuildMemberBoostRemove(guild, user, event.getOldTimeBoosted(), event.getNewTimeBoosted(), event);
return;
} }
} }
} }