get all members of a guild discord.js code example
Example: discord.js how to get all guilds
client.on("ready", () => {
const Guilds = client.guilds.cache.map(guild => guild.id);
console.log(Guilds);
});
client.on("ready", () => {
const Guilds = client.guilds.cache.map(guild => guild.id);
console.log(Guilds);
});