Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/skills / activation / isSlashCommand

Function: isSlashCommand()

ts
function isSlashCommand(raw): boolean;

Defined in: packages/skills/src/activation/index.ts:69

Stable

Convenience predicate. Returns true when parseSlashCommand would succeed against the supplied body.

Parameters

ParameterType
rawstring

Returns

boolean