mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
7 lines
329 B
TypeScript
7 lines
329 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.routes.GUILD(guildId));
|
|
}
|