Skip to main content
Module

x/discordeno/helpers/guilds/deleteGuild.ts

Discord API library for Deno
Go to Latest
File
import type { Bot } from "../../bot.ts";
/** Delete a guild permanently. User must be owner. Returns 204 No Content on success. Fires a Guild Delete Gateway event. */export async function deleteGuild(bot: Bot, guildId: bigint) { await bot.rest.runMethod<undefined>(bot.rest, "DELETE", bot.constants.routes.GUILD(guildId));}