From 936516cb9c110ac9d41f847ef692001acd5677c3 Mon Sep 17 00:00:00 2001 From: anandre <38661761+anandre@users.noreply.github.com> Date: Wed, 14 Apr 2021 17:39:12 -0500 Subject: [PATCH] docs(GuildChannelManager): fix type options in description (#5440) --- src/managers/GuildChannelManager.js | 3 ++- typings/index.d.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/managers/GuildChannelManager.js b/src/managers/GuildChannelManager.js index 58d0c73bd..7448da8c6 100644 --- a/src/managers/GuildChannelManager.js +++ b/src/managers/GuildChannelManager.js @@ -62,7 +62,8 @@ class GuildChannelManager extends BaseManager { * Creates a new channel in the guild. * @param {string} name The name of the new channel * @param {Object} [options] Options - * @param {string} [options.type='text'] The type of the new channel, either `text`, `voice`, or `category` + * @param {string} [options.type='text'] The type of the new channel, either `text`, `voice`, `category`, `news`, + * or `store` * @param {string} [options.topic] The topic for the new channel * @param {boolean} [options.nsfw] Whether the new channel is nsfw * @param {number} [options.bitrate] Bitrate of the new channel in bits (only voice) diff --git a/typings/index.d.ts b/typings/index.d.ts index cfec2e7ae..51c330100 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1971,10 +1971,12 @@ declare module 'discord.js' { public create(name: string, options: GuildCreateChannelOptions & { type: 'voice' }): Promise; public create(name: string, options: GuildCreateChannelOptions & { type: 'category' }): Promise; public create(name: string, options?: GuildCreateChannelOptions & { type?: 'text' }): Promise; + public create(name: string, options: GuildCreateChannelOptions & { type: 'news' }): Promise; + public create(name: string, options: GuildCreateChannelOptions & { type: 'store' }): Promise; public create( name: string, options: GuildCreateChannelOptions, - ): Promise; + ): Promise; } export class GuildEmojiManager extends BaseGuildEmojiManager {