Skip to main content
Extremely Popular
Go to Latest
File
import type { Bot } from "../../bot.ts";import { DiscordAddGuildDiscoverySubcategory } from "../../types/discord.ts";
/** Add a discovery subcategory to the guild. Requires the `MANAGE_GUILD` permission. */export async function addDiscoverySubcategory(bot: Bot, guildId: bigint, categoryId: number) { await bot.rest.runMethod<DiscordAddGuildDiscoverySubcategory>( bot.rest, "POST", bot.constants.routes.DISCOVERY_SUBCATEGORY(guildId, categoryId), );}