This commit is contained in:
ITOH
2021-04-24 19:42:30 +02:00
parent 973ec219cc
commit 140326700b
11 changed files with 22 additions and 47 deletions
+1 -3
View File
@@ -6,10 +6,8 @@ import { requireBotChannelPermissions } from "../../util/permissions.ts";
export async function deleteWebhook(channelId: string, webhookId: string) {
await requireBotChannelPermissions(channelId, ["MANAGE_WEBHOOKS"]);
const result = await rest.runMethod(
return await rest.runMethod<undefined>(
"delete",
endpoints.WEBHOOK_ID(webhookId),
);
return result;
}