You say#commands.respond
commands.respond
Answer a slash command or a click with its response token (the responseUrl does the same without a token).
POST https://app.slaiky.xyz/api/methods/commands.respond · needs the bot token
Arguments
| Argument | Type | Required | What |
|---|---|---|---|
responseToken | string | yes | 1–200 characters. |
text | string | no | Message text (Markdown). May be empty when blocks are sent. Up to 40,000 characters. |
blocks | blocks | no | Layout blocks from the closed catalog (header, section, context, actions with buttons and selects, divider, image). Up to 50 items, may be null. |
responseType | "ephemeral" / "in_channel" | no | Default "ephemeral". |
replaceOriginal | boolean | no | Replace the message that had the clicked button. Default false. |
deleteOriginal | boolean | no | Delete the message that had the clicked button. Default false. |
Answer
{ "ok": true, … } with: message: Message \| ephemeral: Ephemeral. A refusal is { "ok": false, "error": { "code", "message" } } (errors).
Example
The required arguments, with placeholders in angle brackets.
curl -s https://app.slaiky.xyz/api/methods/commands.respond \
-H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
-H 'content-type: application/json' \
-d '{"responseToken":"<responseToken>"}'
Updated . Every method, scope, event and limit here is generated from the server’s own code.