Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/skills / activation / parseSlashCommand
Function: parseSlashCommand()
ts
function parseSlashCommand(raw): SlashCommandActivation;Defined in: packages/skills/src/activation/index.ts:39
Parse a single message body for a /skill:<name> invocation. The grammar accepts:
/skill:<name>
/skill:<name> <free-form-args><name> must match ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$ (kebab-case conventional). Whitespace before the leading / is tolerated; any other prefix triggers a SlashCommandParseError.
Parameters
| Parameter | Type |
|---|---|
raw | string |