Components & Interactions
isSlashCommand
$isSlashCommand — Returns whether the interaction is a slash command
Returns whether the interaction is a slash command
Syntax
$isSlashCommand
Parameters
None.
Return Value
- Boolean.
Usage
$isSlashCommand → result
Example
$isSlashCommand
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.