types: Disallow some channel types from webhook creation (#8531)

types: disallow some channel types from webhook creation
This commit is contained in:
Jiralite
2022-08-20 19:26:33 +01:00
committed by GitHub
parent 8028813825
commit 4882b17a77
2 changed files with 2 additions and 2 deletions

View File

@@ -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
*/
/**

View File

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