Skip to content

Commit

Permalink
add missing intellisense hints to createChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
TTtie committed Aug 8, 2023
1 parent 7a17d2c commit f4d9469
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,18 @@ declare namespace Dysnomia {
type: Constants["ChannelTypes"]["GUILD_STAGE_VOICE"],
options?: CreateChannelOptions
): Promise<StageChannel>;
createChannel(
guildID: string,
name: string,
type: Constants["ChannelTypes"]["GUILD_FORUM"],
options?: CreateChannelOptions
): Promise<ForumChannel>;
createChannel(
guildID: string,
name: string,
type: Constants["ChannelTypes"]["GUILD_MEDIA"],
options?: CreateChannelOptions
): Promise<MediaChannel>;
createChannel(
guildID: string,
name: string,
Expand Down Expand Up @@ -2933,8 +2945,10 @@ declare namespace Dysnomia {
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_TEXT"], options?: CreateChannelOptions): Promise<TextChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_VOICE"], options?: CreateChannelOptions): Promise<TextVoiceChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_CATEGORY"], options?: CreateChannelOptions): Promise<CategoryChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_ANNOUNCEMENT"], options?: CreateChannelOptions | string): Promise<NewsChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_STAGE_VOICE"], options?: CreateChannelOptions | string): Promise<StageChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_ANNOUNCEMENT"], options?: CreateChannelOptions): Promise<NewsChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_STAGE_VOICE"], options?: CreateChannelOptions): Promise<StageChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_FORUM"], options: CreateChannelOptions): Promise<ForumChannel>;
createChannel(name: string, type: Constants["ChannelTypes"]["GUILD_MEDIA"], options: CreateChannelOptions): Promise<MediaChannel>;
createChannel(name: string, type?: number, options?: CreateChannelOptions): Promise<unknown>;
createCommand<T extends ApplicationCommandStructure>(command: T): Promise<ApplicationCommandStructureConversion<T, true>>;
createEmoji(options: { image: string; name: string; roles?: string[] }, reason?: string): Promise<Emoji>;
Expand Down

0 comments on commit f4d9469

Please sign in to comment.