#Getting a member list on new guild event
34 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
a) Guild#members is a GuildMemberManager
b) use fetch if you want all members
technically he is doing the same thing
not quite, fetch gives all members, list gives a max of 1000
list is a rest request, and fetch generates a gateway command that has discord send you gateway events in response
not his issue by the sound of it. Also i already know that. Op 8 payload gives 1k each chunk until it already gets all, in large guild this wudnt be reliable
yep limit default to 1 for list thats why its showing 1 member
So to sum it up: yes it was their issue, and no it’s not technically the same thing. And it’s reliable in large guilds too, just takes longer
I changed it to fetch
but now i done get anything in my console log
You have GUILD_MEMBERS enabled right?
where can i check that
in the developer portal i guess
This thing i suppose
i see
This is what i get
when i console log user
now i try to access the members object inside the guild
where do i get the members list
You still only list 1 member if you don’t provide a limit: option in the list(…)
And what happened when you did .fetch() exactly?