Guild

Class

Methods

getGuildByName

Promise<Discord.Guild>

ParameterTypeDescription

name

string

The name of the Guild.

Optional:

async function usageExample(instance) {
  const guild = await instance.utils.guild.getGuildByName('MY_DISCORD_GUILD_NAME');
  
  console.log(guild);
}

getGuildById

Promise<Discord.Guild>

ParameterTypeDescription

id

string

The id of the Guild.

Optional:

async function usageExample(instance) {
  const guild = await instance.utils.guild.getGuildByName('MY_DISCORD_GUILD_id');
  
  console.log(guild);
}

Last updated