Files
discordeno/helpers/webhooks/deleteWebhookWithToken.ts
2022-02-11 09:49:53 +00:00

7 lines
327 B
TypeScript

import type { Bot } from "../../bot.ts";
/** Delete a webhook permanently. Returns a undefined on success */
export async function deleteWebhookWithToken(bot: Bot, webhookId: bigint, webhookToken: string) {
await bot.rest.runMethod<undefined>(bot.rest, "delete", bot.constants.endpoints.WEBHOOK(webhookId, webhookToken));
}