Update delete_server.ts

This commit is contained in:
ITOH
2021-04-24 19:37:40 +02:00
parent ad22bd3270
commit c0251e4b41
+5 -4
View File
@@ -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.
*/
export async function deleteServer(guildId: string): Promise<undefined> {
const result = await rest.runMethod("delete", endpoints.GUILDS_BASE(guildId));
return result;
export async function deleteServer(guildId: string) {
return await rest.runMethod<undefined>(
"delete",
endpoints.GUILDS_BASE(guildId),
);
}