async function addDiscoverySubcategory(
  guildId,
  categoryId,
) {
  await requireBotGuildPermissions(guildId, [
    "MANAGE_GUILD",
  ]);
  return await rest.runMethod(
    "post",
    endpoints.DISCOVERY_SUBCATEGORY(guildId, categoryId),
  );
}
/** Add a discovery subcategory to the guild. Requires the `MANAGE_GUILD` permission. */
Add a discovery subcategory to the guild. Requires the `MANAGE_GUILD` permission.
Add a discovery subcategory to the guild . Requires the ` MANAGE_GUILD ` permission .
async function addDiscoverySubcategory(
  guildId,
  categoryId,
) {
  await requireBotGuildPermissions(guildId, [
    "MANAGE_GUILD",
  ]);
  return await rest.runMethod(
    "post",
    endpoints.DISCOVERY_SUBCATEGORY(guildId, categoryId),
  );
}
async function addDiscoverySubcategory ( guildId , categoryId , ) { await requireBotGuildPermissions ( guildId , [ "MANAGE_GUILD" , ] ) ; return await rest . runMethod ( "post" , endpoints . DISCOVERY_SUBCATEGORY ( guildId , categoryId ) , ) ; }
Add a discovery subcategory to the guild.
Add a discovery subcategory to the guild .