-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix(guide): update 'Members didn't arrive in time' explanation #11277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,13 +187,19 @@ This error originates from an invalid call to `bulkDelete()`. Make sure you are | |
|
|
||
| ### Members didn't arrive in time. | ||
|
|
||
| This error happens when fetching multiple members via `GuildMemberManager#fetch()` and: | ||
| <Callout> | ||
| Discord recently implemented a rate limit to the `GuildMemberManager#fetch()` call of one fetch per 30 seconds per | ||
| server. You must update your code accordingly if you are receiving this error -- look for instances of | ||
| `guild.members.fetch()` with no user IDs. | ||
| </Callout> | ||
|
|
||
| This error is related to the `GuildMemberManager#fetch()` function. The error is emitted when you fetch multiple members and any of the following conditions are true: | ||
|
|
||
| - The `GuildMembers` intent is not specified or enabled in the dev dashboard | ||
| - The internet connection is somewhat bad | ||
| - The amount of members fetched is large (about 50 thousand and upwards) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why was this removed? |
||
| - The one fetch per guild per 30 seconds rate limit set by Discord has been exceeded, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I realise you already changed this on Qjuh's advice, but its also generally not great to be explicit about what the rate limit it. Discord could change it at any time. All this needs to say is that you might be exceeding the rate limit. |
||
| - The `GuildMembers` intent is not specified or enabled in the bot dashboard, or | ||
| - The internet connection is somewhat bad. | ||
|
|
||
| You can specify the time to wait for with the `time` option in the `.fetch()` call. Another solution could be to move your bot to a faster infrastructure, if available. | ||
| You can specify the time to wait for with the `time` option in the `.fetch()` call. If available, moving your bot to faster infrastructure may also resolve the problem. | ||
|
|
||
| ### MaxListenersExceededWarning: Possible EventEmitter memory leak detected... | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the guide should be written in a fashion that it'll stay true over time. Replace
recentlywith a mention of the date this happened or simply stating it is this way, not that it changed.