showing results for - "get every member of a server discord js"
David
02 Nov 2019
1// Get the right server
2const guild = bot.guilds.cache.get('GUILD_ID_HERE');
3
4// Fetch and get the list named 'members'
5guild.members.fetch().then(members =>
6{
7  	// Loop through every members
8	members.forEach(member =>
9    {
10      // Do whatever you want with the current member
11    });
12});