discord
Installation
SKILL.md
We drive the Discord API
with curl + jq. The user's OAuth bearer token is in $DISCORD_TOKEN;
every call needs it as Authorization: Bearer $DISCORD_TOKEN. Use the
versioned base URL https://discord.com/api/v10.
Discord returns standard JSON. Errors look like
{"code": <n>, "message": "<reason>"}. A 401 Unauthorized means the
token expired or the connection was revoked — tell the user to re-connect
Discord at auth.acedata.cloud/user/connections. A 429 carries a
retry_after (seconds) field — sleep that long, then retry; never
parallelize.