From 16fcdc36877d1a65ce9995c9fe3502aa268c9388 Mon Sep 17 00:00:00 2001 From: Almeida Date: Sat, 24 Sep 2022 15:34:19 +0100 Subject: [PATCH] fix(GuildChannelManager): allow creating webhooks on forums (#8661) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- 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 d4e18c1c4..3710cff3a 100644 --- a/packages/discord.js/src/managers/GuildChannelManager.js +++ b/packages/discord.js/src/managers/GuildChannelManager.js @@ -170,7 +170,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 ff0acd0a0..5310ab667 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4277,7 +4277,7 @@ export interface ChannelWebhookCreateOptions { } export interface WebhookCreateOptions extends ChannelWebhookCreateOptions { - channel: TextChannel | NewsChannel | VoiceChannel | Snowflake; + channel: TextChannel | NewsChannel | VoiceChannel | ForumChannel | Snowflake; } export interface ClientEvents {