BREAKING CHANGE remove unused deleteWebhook function channelId parameter

This commit is contained in:
lts20050703
2022-01-26 17:22:59 +07:00
parent 445f8bb085
commit 9e3195c3d4
+1 -1
View File
@@ -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 });
}