Skip to content

Commit

Permalink
fix(GuildChannelManager): allow creating webhooks on forums (#8661)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
almeidx and kodiakhq[bot] committed Sep 24, 2022
1 parent 8622939 commit 16fcdc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/discord.js/src/managers/GuildChannelManager.js
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit 16fcdc3

Please sign in to comment.