mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
feat(Channel): add isThread typeguard for better TS support (#5978)
This commit is contained in:
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -438,6 +438,7 @@ declare module 'discord.js' {
|
||||
public delete(reason?: string): Promise<Channel>;
|
||||
public fetch(force?: boolean): Promise<Channel>;
|
||||
public isText(): this is TextChannel | DMChannel | NewsChannel | ThreadChannel;
|
||||
public isThread(): this is ThreadChannel;
|
||||
public toString(): string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user