Closed Andre601 closed 4 years ago
This is intended behavior. Discord requires to chunk the members for each guild individually. You have to either accept these warnings or disable chunking with setChunkingFilter(ChunkingFilter.NONE)
.
Would disabling the ChunkingFilter have any major impact on the bot? Like on what methods you can use or the general performance? Or is it neglectable?
Without chunking, JDA will use lazy loading and start off with a minimal set of members. If the GUILD_PRESENCES
intent is disabled, we start off with only voice members. With GUILD_PRESENCES
we start with online members and voice members. Additional members will be loaded once they are active.
There are many ways to load and access members without chunking:
Will Message#getMember()
and similar get methods still work?
Will Message#getMember() and similar get methods still work?
Depends on the message origin. In events, yes. When you do retrieveMessageById
discord currently doesn't provide the member instance, so it will be null.
Thanks for the clarifications.
General Troubleshooting
Question
When building a ShardManager instance using the DefaultShardManagerBuilder and also disabling specific Intents and CacheFlags do I receive these warnings without knowing what the issue is:
(note that 503 is different depending on the shard)
This starts once the bot connects to the websocket (
Connected to WebSocket!
message) and then spams in regular intervals the console.Example Code
Code used to built a ShardManager instance