mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
feat(GuildChannelManager): add 'fetch' method (#4966)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: Avocado <43632131+Awoocado@users.noreply.github.com>
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -2256,6 +2256,8 @@ declare module 'discord.js' {
|
||||
name: string,
|
||||
options: GuildCreateChannelOptions,
|
||||
): Promise<TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | StageChannel>;
|
||||
public fetch(id: Snowflake, cache?: boolean, force?: boolean): Promise<TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | StageChannel | null>;
|
||||
public fetch(id?: Snowflake, cache?: boolean, force?: boolean): Promise<Collection<Snowflake, TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | StageChannel>>;
|
||||
}
|
||||
|
||||
export class GuildEmojiManager extends BaseGuildEmojiManager {
|
||||
|
||||
Reference in New Issue
Block a user