mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-15 19:08:20 +00:00
feat(Channel): add isThread typeguard for better TS support (#5978)
This commit is contained in:
Vendored
+1
@@ -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