async function createGuild(
  options,
) {
  const result = await rest.runMethod("post", endpoints.GUILDS, options);
  const guild = await structures.createDiscordenoGuild(result, 0);
  // MANUALLY CACHE THE GUILD
  await cacheHandlers.set("guilds", guild.id, guild);
  // MANUALLY CACHE THE BOT
  await getMember(guild.id, botId);
  return guild;
}
/** Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event. This endpoint can be used only by bots in less than 10 guilds. */
Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event. This endpoint can be used only by bots in less than 10 guilds.
Create a new guild . Returns a guild object on success . Fires a Guild Create Gateway event . This endpoint can be used only by bots in less than 10 guilds .
async function createGuild(
  options,
) {
  const result = await rest.runMethod("post", endpoints.GUILDS, options);
  const guild = await structures.createDiscordenoGuild(result, 0);
  await cacheHandlers.set("guilds", guild.id, guild);
  await getMember(guild.id, botId);
  return guild;
}
async function createGuild ( options , ) { const result = await rest . runMethod ( "post" , endpoints . GUILDS , options ) ; const guild = await structures . createDiscordenoGuild ( result , 0 ) ; await cacheHandlers . set ( "guilds" , guild . id , guild ) ; await getMember ( guild . id , botId ) ; return guild ; }
Create a new guild.
Create a new guild .
// MANUALLY CACHE THE GUILD // MANUALLY CACHE THE BOT