docs(GuildChannelManager): fix type options in description (#5440)

This commit is contained in:
anandre
2021-04-14 17:39:12 -05:00
committed by GitHub
parent 7b161f93a0
commit 936516cb9c
2 changed files with 5 additions and 2 deletions

4
typings/index.d.ts vendored
View File

@@ -1971,10 +1971,12 @@ declare module 'discord.js' {
public create(name: string, options: GuildCreateChannelOptions & { type: 'voice' }): Promise<VoiceChannel>;
public create(name: string, options: GuildCreateChannelOptions & { type: 'category' }): Promise<CategoryChannel>;
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,
): Promise<TextChannel | VoiceChannel | CategoryChannel>;
): Promise<TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel>;
}
export class GuildEmojiManager extends BaseGuildEmojiManager {