diff --git a/src/client/actions/WebhooksUpdate.js b/src/client/actions/WebhooksUpdate.js index fdf9c56d6..7efccd729 100644 --- a/src/client/actions/WebhooksUpdate.js +++ b/src/client/actions/WebhooksUpdate.js @@ -8,9 +8,9 @@ class WebhooksUpdate extends Action { const client = this.client; const channel = client.channels.cache.get(data.channel_id); /** - * Emitted whenever a guild text channel has its webhooks changed. + * Emitted whenever a channel has its webhooks changed. * @event Client#webhookUpdate - * @param {TextChannel} channel The channel that had a webhook update + * @param {TextChannel|NewsChannel} channel The channel that had a webhook update */ if (channel) client.emit(Events.WEBHOOKS_UPDATE, channel); } diff --git a/typings/index.d.ts b/typings/index.d.ts index d81713d9e..e639d7e4a 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3449,7 +3449,7 @@ export interface ClientEvents { typingStart: [typing: Typing]; userUpdate: [oldUser: User | PartialUser, newUser: User]; voiceStateUpdate: [oldState: VoiceState, newState: VoiceState]; - webhookUpdate: [channel: TextChannel]; + webhookUpdate: [channel: TextChannel | NewsChannel]; /** @deprecated Use interactionCreate instead */ interaction: [interaction: Interaction]; interactionCreate: [interaction: Interaction];