maybe fix boost event??
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s

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

View File

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

View File

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