docs(ChannelManager): fetch can return Promise<null> (#5422)

This commit is contained in:
Advaith
2021-03-28 06:24:19 -07:00
committed by GitHub
parent 8411b9e142
commit 1c8b1096c6
2 changed files with 2 additions and 2 deletions

2
typings/index.d.ts vendored
View File

@@ -1893,7 +1893,7 @@ declare module 'discord.js' {
export class ChannelManager extends BaseManager<Snowflake, Channel, ChannelResolvable> {
constructor(client: Client, iterable: Iterable<any>);
public fetch(id: Snowflake, cache?: boolean, force?: boolean): Promise<Channel>;
public fetch(id: Snowflake, cache?: boolean, force?: boolean): Promise<Channel | null>;
}
export class GuildChannelManager extends BaseManager<Snowflake, GuildChannel, GuildChannelResolvable> {