Skip to content

Commit

Permalink
enable voice caching for Java-Discord#495
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe1st committed Nov 23, 2024
1 parent 45ff52d commit 954daa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/discordjug/javabot/SpringConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 954daa7

Please sign in to comment.