From 5b917af1cadd42ac5ed2e8e76e9eed9688a11918 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 5 Jul 2024 19:35:33 +0100 Subject: [PATCH] fix intent --- src/main/java/cc/fascinated/bat/service/DiscordService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/service/DiscordService.java b/src/main/java/cc/fascinated/bat/service/DiscordService.java index 497da8d..bbfa3ea 100644 --- a/src/main/java/cc/fascinated/bat/service/DiscordService.java +++ b/src/main/java/cc/fascinated/bat/service/DiscordService.java @@ -51,14 +51,14 @@ public class DiscordService { GatewayIntent.MESSAGE_CONTENT, GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_EMOJIS_AND_STICKERS, - GatewayIntent.GUILD_PRESENCES, GatewayIntent.GUILD_VOICE_STATES, GatewayIntent.GUILD_INVITES )) .disableCache( CacheFlag.ACTIVITY, CacheFlag.CLIENT_STATUS, - CacheFlag.SCHEDULED_EVENTS + CacheFlag.SCHEDULED_EVENTS, + CacheFlag.ONLINE_STATUS ).build() .awaitReady(); log.info("Connected to Discord as {}", JDA.getSelfUser().getEffectiveName());