diff --git a/src/helpers/webhooks/editWebhook.ts b/src/helpers/webhooks/editWebhook.ts index d934d194d..7da0c449c 100644 --- a/src/helpers/webhooks/editWebhook.ts +++ b/src/helpers/webhooks/editWebhook.ts @@ -3,7 +3,7 @@ import type { Webhook } from "../../types/webhooks/webhook.ts"; import type { Bot } from "../../bot.ts"; /** Edit a webhook. Requires the `MANAGE_WEBHOOKS` permission. Returns the updated webhook object on success. */ -export async function editWebhook(bot: Bot, channelId: bigint, webhookId: bigint, options: ModifyWebhook) { +export async function editWebhook(bot: Bot, webhookId: bigint, options: ModifyWebhook) { const result = await bot.rest.runMethod(bot.rest, "patch", bot.constants.endpoints.WEBHOOK_ID(webhookId), { ...options, channel_id: options.channelId, diff --git a/src/types/webhooks/createWebhook.ts b/src/types/webhooks/createWebhook.ts index 843ef477f..cce31638c 100644 --- a/src/types/webhooks/createWebhook.ts +++ b/src/types/webhooks/createWebhook.ts @@ -3,5 +3,6 @@ export interface CreateWebhook { name: string; /** Image for the default webhook avatar */ avatar?: string | null; + /** The reason you are creating this webhook */ reason?: string; } diff --git a/src/types/webhooks/modifyWebhook.ts b/src/types/webhooks/modifyWebhook.ts index 099d17016..620ce806e 100644 --- a/src/types/webhooks/modifyWebhook.ts +++ b/src/types/webhooks/modifyWebhook.ts @@ -6,5 +6,6 @@ export interface ModifyWebhook { avatar?: string | null; /** The new channel id this webhook should be moved to */ channelId?: string; + /** The reason you are modifying this webhook */ reason?: string; }