mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update delete_server.ts
This commit is contained in:
@@ -3,8 +3,9 @@ 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.
|
/** Delete a guild permanently. User must be owner. Returns 204 No Content on success. Fires a Guild Delete Gateway event.
|
||||||
*/
|
*/
|
||||||
export async function deleteServer(guildId: string): Promise<undefined> {
|
export async function deleteServer(guildId: string) {
|
||||||
const result = await rest.runMethod("delete", endpoints.GUILDS_BASE(guildId));
|
return await rest.runMethod<undefined>(
|
||||||
|
"delete",
|
||||||
return result;
|
endpoints.GUILDS_BASE(guildId),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user