Caspian Discord

Post a Discord message via Caspian to a channel snowflake id. Use when the user runs /caspian:discord or asks to message a Discord channel through the bot.

trycaspian ff2f7d7 1.2 KB Updated

File contents

Caspian Discord send (caspian:Discord)

Post a message to a Discord channel through the connected Caspian bot.

When to use

  • User runs /caspian:discord or /caspian-discord
  • User asks to post / message a Discord channel via the agent

How

  1. Parse to (Discord channel snowflake id) and body.

  2. Call tool caspian_send_discord with to and body.

  3. Present the tool output. Always include:

    Discord: to is a channel snowflake (Developer Mode → Copy Channel ID). Invite the bot to the server first. For DMs, use the DM channel id after the user has opened a DM with the bot.

  4. Do not claim success without a tool result.

  5. If Discord is not connected, suggest /caspian:connect-discord first.

Reliability notes

  • Outbound send is outside the inbound critical path; failures should not drop the listen loop.
  • Inbound Discord only works when discord is in caspian.json channels (admit blast-radius) after restart.

trycaspian/caspian-sdk/tree/main/packages/opencode/src/skills/caspian-discord commit ff2f7d7615

Frequently asked questions

npx skillmds@latest add trycaspian/caspian-discord