mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
BREAKING CHANGE remove unused deleteWebhook function channelId parameter
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
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, channelId: bigint, webhookId: bigint, reason?: string) {
|
||||
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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user