Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions apps/guide/content/docs/legacy/popular-topics/errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

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 recently with a mention of the date this happened or simply stating it is this way, not that it changed.

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)
Copy link
Member

Choose a reason for hiding this comment

The 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,
Copy link
Member

Choose a reason for hiding this comment

The 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...

Expand Down