feat(Interaction): add isApplicationCommand check (#6801)

This commit is contained in:
Hackerboi 69
2021-10-12 21:11:32 +02:00
committed by GitHub
parent 460df9eb4d
commit 6898fa3b37
2 changed files with 9 additions and 0 deletions

1
typings/index.d.ts vendored
View File

@@ -1120,6 +1120,7 @@ export class Interaction extends Base {
public inGuild(): this is GuildInteraction<'present'> & this;
public inCachedGuild(): this is GuildInteraction<'cached'> & this;
public inRawGuild(): this is GuildInteraction<'raw'> & this;
public isApplicationCommand(): this is BaseCommandInteraction;
public isButton(): this is ButtonInteraction;
public isCommand(): this is CommandInteraction;
public isContextMenu(): this is ContextMenuInteraction;