Answers for "discordjs get guild"

1

discord.js how to get all guilds

client.on("ready", () => {
    const Guilds = client.guilds.cache.map(guild => guild.id);
    console.log(Guilds);
});
Posted by: Guest on March-15-2021
0

discord.js get server guild id

let server = message.guild.id, // ID of the guild the message was sent in
  channel = message.channel.id // ID of the channel the message was sent in
Posted by: Guest on May-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language