Slaikydocs

    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

    ArgumentTypeRequiredWhat
    responseTokenstringyes1–200 characters.
    textstringnoMessage text (Markdown). May be empty when blocks are sent. Up to 40,000 characters.
    blocksblocksnoLayout 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"noDefault "ephemeral".
    replaceOriginalbooleannoReplace the message that had the clicked button. Default false.
    deleteOriginalbooleannoDelete 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.

    you run
    
    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.