From 0e051c4066792645857d006796002099e8d480af Mon Sep 17 00:00:00 2001 From: almeidx Date: Wed, 21 Sep 2022 22:29:13 +0100 Subject: [PATCH] fix(GuildChannelManager): allow creating webhooks on forums --- packages/discord.js/src/managers/GuildChannelManager.js | 3 ++- packages/discord.js/typings/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/managers/GuildChannelManager.js b/packages/discord.js/src/managers/GuildChannelManager.js index 7549dfc99296..455018df2a2f 100644 --- a/packages/discord.js/src/managers/GuildChannelManager.js +++ b/packages/discord.js/src/managers/GuildChannelManager.js @@ -169,7 +169,8 @@ class GuildChannelManager extends CachedManager { /** * @typedef {ChannelWebhookCreateOptions} WebhookCreateOptions - * @property {TextChannel|NewsChannel|VoiceChannel|Snowflake} channel The channel to create the webhook for + * @property {TextChannel|NewsChannel|VoiceChannel|ForumChannel|Snowflake} channel + * The channel to create the webhook for */ /** diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index fa949af30c6e..79b2c96e243a 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4250,7 +4250,7 @@ export interface ChannelWebhookCreateOptions { } export interface WebhookCreateOptions extends ChannelWebhookCreateOptions { - channel: TextChannel | NewsChannel | VoiceChannel | Snowflake; + channel: TextChannel | NewsChannel | VoiceChannel | ForumChannel | Snowflake; } export interface ClientEvents {