From 5048a3d17ace22336e74451d30b513b3db42a26f Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:51:34 +0100 Subject: [PATCH] feat: Allow forum channels in webhook update event (#8646) feat: allow forum channels in webhook update event --- packages/discord.js/src/client/actions/WebhooksUpdate.js | 2 +- packages/discord.js/typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/client/actions/WebhooksUpdate.js b/packages/discord.js/src/client/actions/WebhooksUpdate.js index e4c11daed79d..ab10cd244adb 100644 --- a/packages/discord.js/src/client/actions/WebhooksUpdate.js +++ b/packages/discord.js/src/client/actions/WebhooksUpdate.js @@ -10,7 +10,7 @@ class WebhooksUpdate extends Action { /** * Emitted whenever a channel has its webhooks changed. * @event Client#webhookUpdate - * @param {TextChannel|NewsChannel|VoiceChannel} channel The channel that had a webhook update + * @param {TextChannel|NewsChannel|VoiceChannel|ForumChannel} channel The channel that had a webhook update */ if (channel) client.emit(Events.WebhooksUpdate, channel); } diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 737d02f9d141..d48256337996 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4317,7 +4317,7 @@ export interface ClientEvents { typingStart: [typing: Typing]; userUpdate: [oldUser: User | PartialUser, newUser: User]; voiceStateUpdate: [oldState: VoiceState, newState: VoiceState]; - webhookUpdate: [channel: TextChannel | NewsChannel | VoiceChannel]; + webhookUpdate: [channel: TextChannel | NewsChannel | VoiceChannel | ForumChannel]; interactionCreate: [interaction: Interaction]; shardDisconnect: [closeEvent: CloseEvent, shardId: number]; shardError: [error: Error, shardId: number];