Skip to main content
Latest
File
import type { Bot } from "../../bot.ts";import { BigString } from "../../types/shared.ts";
/** * Deletes a template from a guild. * * @param bot - The bot instance to use to make the request. * @param guildId - The ID of the guild to delete the template from. * @param templateCode - The code of the template to delete. * * @remarks * Requires the `MANAGE_GUILD` permission. * * Fires a _Guild Update_ gateway event. * * @see {@link https://discord.com/developers/docs/resources/guild-template#delete-guild-template} */export async function deleteGuildTemplate(bot: Bot, guildId: BigString, templateCode: string): Promise<void> { return await bot.rest.runMethod<void>( bot.rest, "DELETE", bot.constants.routes.GUILD_TEMPLATE(guildId, templateCode), );}