I was wondering is it possible to fetch through all members in the guild and get their IDs?
I made something like
msg.guild.members.forEach(guildMember => {
guildMember.fetchMembers().then(console.log(guildMember.id))
})
But I got an error so I guess I did it in
TypeError: guildMember.fetchMembers is not a function
Also, I am using discord v11
Thanks in advance.
question from:https://stackoverflow.com/questions/65621757/fetching-all-guild-members-djs11