mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
5f1b82a4e8
* fix(rest/process_request): use DiscordHTTPResponseCodes * refactor: remove RequestManager * refactor: remove RequestManager and use runMethod()
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
import { rest } from "../../rest/rest.ts";
|
|
import { endpoints } from "../../util/constants.ts";
|
|
|
|
/** Leave a guild */
|
|
export async function leaveGuild(guildId: string) {
|
|
const result = await rest.runMethod("delete", endpoints.GUILD_LEAVE(guildId));
|
|
|
|
return result;
|
|
}
|