docs(GuildChannelManager): add stage option (#5608)

This commit is contained in:
Vicente
2021-05-11 21:23:58 +01:00
committed by GitHub
parent 2e2464bf07
commit d219ecd05c
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class GuildChannelManager extends BaseManager {
* @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`, `category`, `news`,
* or `store`
* `store`, or `stage`
* @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)

3
typings/index.d.ts vendored
View File

@@ -2102,10 +2102,11 @@ declare module 'discord.js' {
public create(name: string, options?: GuildCreateChannelOptions & { type?: 'text' }): Promise<TextChannel>;
public create(name: string, options: GuildCreateChannelOptions & { type: 'news' }): Promise<NewsChannel>;
public create(name: string, options: GuildCreateChannelOptions & { type: 'store' }): Promise<StoreChannel>;
public create(name: string, options: GuildCreateChannelOptions & { type: 'stage' }): Promise<StageChannel>;
public create(
name: string,
options: GuildCreateChannelOptions,
): Promise<TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel>;
): Promise<TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | StageChannel>;
}
export class GuildEmojiManager extends BaseGuildEmojiManager {