deleteServer to deleteGuild

This commit is contained in:
ITOH
2021-04-30 15:01:32 +02:00
parent 1db74e9ab4
commit c50fb39b42
5 changed files with 13 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
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: string) {
return await rest.runMethod<undefined>(
"delete",
endpoints.GUILDS_BASE(guildId),
);
}