mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 07:20:08 +00:00
7 lines
338 B
TypeScript
7 lines
338 B
TypeScript
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.endpoints.GUILDS_BASE(guildId));
|
|
}
|