From 10b12ccea65011627649ecdfc814caffa5776e14 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 22 Aug 2022 08:46:17 +0100 Subject: [PATCH] types: Disallow some channel types from webhook creation (#8535) --- src/managers/GuildChannelManager.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/GuildChannelManager.js b/src/managers/GuildChannelManager.js index 0558187c5..8212bcf2c 100644 --- a/src/managers/GuildChannelManager.js +++ b/src/managers/GuildChannelManager.js @@ -175,7 +175,7 @@ class GuildChannelManager extends CachedManager { /** * Creates a webhook for the channel. - * @param {GuildChannelResolvable} channel The channel to create the webhook for + * @param {TextChannel|NewsChannel|VoiceChannel|Snowflake} channel The channel to create the webhook for * @param {string} name The name of the webhook * @param {ChannelWebhookCreateOptions} [options] Options for creating the webhook * @returns {Promise} Returns the created Webhook diff --git a/typings/index.d.ts b/typings/index.d.ts index f037d607f..71eae0780 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3229,7 +3229,7 @@ export class GuildChannelManager extends CachedManager; public edit(channel: GuildChannelResolvable, data: ChannelData, reason?: string): Promise; public fetch(id: Snowflake, options?: BaseFetchOptions): Promise;