fix(GuildChannelManager): allow creating webhooks on forums (#8661)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2022-09-24 15:34:19 +01:00
committed by GitHub
parent 8622939229
commit 16fcdc3687
2 changed files with 3 additions and 2 deletions

View File

@@ -170,7 +170,8 @@ class GuildChannelManager extends CachedManager {
/** /**
* @typedef {ChannelWebhookCreateOptions} WebhookCreateOptions * @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
*/ */
/** /**

View File

@@ -4277,7 +4277,7 @@ export interface ChannelWebhookCreateOptions {
} }
export interface WebhookCreateOptions extends ChannelWebhookCreateOptions { export interface WebhookCreateOptions extends ChannelWebhookCreateOptions {
channel: TextChannel | NewsChannel | VoiceChannel | Snowflake; channel: TextChannel | NewsChannel | VoiceChannel | ForumChannel | Snowflake;
} }
export interface ClientEvents { export interface ClientEvents {