mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
7 lines
357 B
TypeScript
7 lines
357 B
TypeScript
import type { Bot } from "../../bot.ts";
|
|
|
|
/** Delete a webhook permanently. Requires the `MANAGE_WEBHOOKS` permission. Returns a undefined on success */
|
|
export async function deleteWebhook(bot: Bot, webhookId: bigint, reason?: string) {
|
|
await bot.rest.runMethod<undefined>(bot.rest, "delete", bot.constants.endpoints.WEBHOOK_ID(webhookId), { reason });
|
|
}
|