-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Error: Members didn't arrive in time. #3774
Comments
This has been a recurring issue the past few days, it is not a library problem. There seems to be issues with the guild members chunk event not working properly. It is an API issue out of our control. P.S.: you should not ignore the issue template 👀 |
It looks like Discord sends those packets (again), at least for me. |
Same thing happening here |
Same thing here |
This has been happening consistently to me for a while now. If it is a problem at Discord's end, I wonder if they broke something when rolling out intent support -- I know intents are meant to be optional right now, but maybe they're not as optional as they should be. |
Given that fetching all members was the one intent that they planned on restricting, I don't think this is "broken" but we'd definitely need more information from you all to try to help determine a real cause. Probably most notably - how many guilds is your bot impacted by this issue in? Of course, if you're all logging in with user tokens, then A) you shouldn't be anyway since its against ToS and B) this is expected behaviour for user accounts |
When I do await guild.members.fetch(); I'm getting the following error message: My bot is connected to ~5,000 guilds, and this always happens on the same 4 guilds. I read this might have to do with large guilds, however they're not particularly large at 48, 134, 632, and 1078 members (logging with |
Hitting the same issue today |
Dito, hitting the same issue today. |
As of 27/10/2020 (warned since October 7, 2020), Discord has started enforcing intents and developers are required to enable them for receiving certain gateway events. Read the guide on intents. |
Extending Extroonie's comment above, this can be resolved by requesting the Steps: Code (before): const { Client } = require("discord.js");
const client = new Client(); Code (after): const { Client, Intents } = require("discord.js");
const intents = new Intents([
Intents.NON_PRIVILEGED, // include all non-privileged intents, would be better to specify which ones you actually need
"GUILD_MEMBERS", // lets you request guild members (i.e. fixes the issue)
]);
const client = new Client({ ws: { intents } }); References: Edit: I made the mistake of referencing this issue in personal projects, would be appreciated if an admin removed the "added a commit that referenced this issue" comments below. |
No code changes needed. You don't need to necessarily provide the intents for version 12 of discord.js. ⚙️ Privileged intents and what they mean for you ❯ Which intents are privileged, which do I need? ❯ How can I do things without these events? ❯ A) Your bot is verified ❯ B) Your bot is not verified ❯ Symptoms you might be experiencing right now: ❯ Resources |
Thank you @Extroonie ! I could not figure this out this morning, you're a life saver! |
This happened to my discord server after having 1500+ members. |
Well then since this already has a solution, please follow it. |
It took me several days to reach here. I wish I had found this long back. Thank you @Extroonie |
i am still getting this error in discord.js v14, i have my intents on (in both the dev portal and the code) but im still getting this error, none of the above answers seemed to help |
Also having this issue, not an intents problem as all enabled on the dev portal and all intents added. EDIT: Bot is only in 3 servers (Private bot) |
I had the problem in v14 and it was resolved by adding the below: const { Client, GatewayIntentBits, Partials } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.DirectMessages, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent],
partials: [Partials.Channel],
});
client.login(config.token); After I added |
This issue is by now very outdated and originally was happening for very different reasons. Generally speaking, the reasoning is still the same I outlined in #3774 (comment) , but with applying new enums or at least PasCase flag names, as shown in #3774 (comment) |
Discord bot not caching all members and giving wrong member count
The text was updated successfully, but these errors were encountered: