mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
11 lines
457 B
TypeScript
11 lines
457 B
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/helpers/guilds/delete_guild.ts
|
|
|
|
|
|
import { rest } from "../../rest/rest.ts";
|
|
import { endpoints } from "../../util/constants.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(guildId: bigint) {
|
|
return await rest.runMethod<undefined>("delete", endpoints.GUILDS_BASE(guildId));
|
|
}
|