From 954daa72fc317abca8f8286c98e0951bb362a8ab Mon Sep 17 00:00:00 2001 From: danthe1st Date: Sat, 23 Nov 2024 18:44:56 +0100 Subject: [PATCH] enable voice caching for #495 --- src/main/java/net/discordjug/javabot/SpringConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/discordjug/javabot/SpringConfig.java b/src/main/java/net/discordjug/javabot/SpringConfig.java index 1faae73d5..1a5168a47 100644 --- a/src/main/java/net/discordjug/javabot/SpringConfig.java +++ b/src/main/java/net/discordjug/javabot/SpringConfig.java @@ -70,8 +70,8 @@ JDA jda(BotConfig botConfig, ApplicationContext ctx) { return JDABuilder.createDefault(botConfig.getSystems().getJdaBotToken()) .setStatus(OnlineStatus.DO_NOT_DISTURB) .setChunkingFilter(ChunkingFilter.ALL) - .setMemberCachePolicy(MemberCachePolicy.NONE) - .enableCache(CacheFlag.ACTIVITY) + .setMemberCachePolicy(MemberCachePolicy.VOICE) + .enableCache(CacheFlag.ACTIVITY, CacheFlag.VOICE_STATE) .enableIntents(GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_PRESENCES, GatewayIntent.MESSAGE_CONTENT) .addEventListeners(listeners.toArray()) .build();