Skip to content

Commit

Permalink
types: Disallow some channel types from webhook creation (#8531)
Browse files Browse the repository at this point in the history
types: disallow some channel types from webhook creation
  • Loading branch information
Jiralite committed Aug 20, 2022
1 parent 8028813 commit 4882b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/discord.js/src/managers/GuildChannelManager.js
Expand Up @@ -164,7 +164,7 @@ class GuildChannelManager extends CachedManager {

/**
* @typedef {ChannelWebhookCreateOptions} WebhookCreateOptions
* @property {GuildChannelResolvable} channel The channel to create the webhook for
* @property {TextChannel|NewsChannel|VoiceChannel|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 @@ -4152,7 +4152,7 @@ export interface ChannelWebhookCreateOptions {
}

export interface WebhookCreateOptions extends ChannelWebhookCreateOptions {
channel: GuildChannelResolvable;
channel: TextChannel | NewsChannel | VoiceChannel | Snowflake;
}

export interface ClientEvents {
Expand Down

0 comments on commit 4882b17

Please sign in to comment.