Loading...
Loading...
Operate Discord HTTP API through UXC with Discord OpenAPI schema. Bot token recommended for full API access including messages and server management. OAuth2 user authentication available for limited profile operations only.
npx skill4agent add holon-run/uxc discord-openapi-skilluxcuxcuxcPATHhttps://discord.com/api/v10https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.jsonuxc auth credential set discord-bot \
--auth-type api_key \
--header "Authorization=Bot {{secret}}" \
--secret "YOUR_BOT_TOKEN_HERE"uxc auth binding add \
--id discord-bot \
--host discord.com \
--path-prefix /api/v10 \
--scheme https \
--credential discord-bot \
--priority 1001479302369723285736http://127.0.0.1:11111/callback--scope "identify email connections guilds guilds.members.read messages.read openid"--scope "identify email connections guilds guilds.members.read"| Scope | Description | Write Operation |
|---|---|---|
| Basic user info (username, avatar, etc.) | ❌ Read |
| User's email address | ❌ Read |
| Linked third-party accounts (Twitch, YouTube, etc.) | ❌ Read |
| User's server list | ❌ Read |
| Join user to servers (requires the same application's bot to already be in that guild) | ✅ Write |
| User's member info in servers | ❌ Read |
| Read messages (local RPC only, not HTTP API) | ❌ Read |
| OpenID Connect support | ❌ Read |
guilds.joinuxc auth oauth start discord-user \
--endpoint https://discord.com/api/oauth2/token \
--client-id 1479302369723285736 \
--redirect-uri http://127.0.0.1:11111/callback \
--scope "identify email connections guilds guilds.members.read messages.read openid"uxc auth oauth complete discord-user \
--session-id <session_id_from_step_1> \
--authorization-response "<callback_url_from_browser>"uxc auth binding add \
--id discord-user \
--host discord.com \
--path-prefix /api/v10 \
--scheme https \
--credential discord-user \
--priority 100uxc auth oauth login discord-user \
--endpoint https://discord.com/api/oauth2/token \
--flow authorization_code \
--client-id 1479302369723285736 \
--redirect-uri http://127.0.0.1:11111/callback \
--scope "identify email connections guilds guilds.members.read messages.read openid"command -v discord-openapi-cliuxc link discord-openapi-cli https://discord.com/api/v10 --schema-url https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.jsondiscord-openapi-cli -hdiscord-openapi-cli -hdiscord-openapi-cli get:/users/@me -hdiscord-openapi-cli post:/channels/{channel_id}/messages -hdiscord-openapi-cli get:/gatewaydiscord-openapi-cli get:/guilds/{guild_id}/channels guild_id=GUILD_IDdiscord-openapi-cli post:/channels/{channel_id}/messages '{"channel_id":"CHANNEL_ID","content":"Hello from uxc"}'uxc auth binding match https://discord.com/api/v10| Feature | Bot Token | User OAuth2 |
|---|---|---|
| Read channel messages | ✅ Full access | ❌ Not via HTTP API |
| Send messages | ✅ As the bot | ❌ Not supported |
| Manage channels/roles | ✅ Bot permissions | ❌ Not supported |
| Moderation actions | ✅ Bot permissions | ❌ Not supported |
| List servers | ✅ Servers bot is in | ✅ User's servers |
| Read user info | ❌ Not available | ✅ As the user |
| Message appearance | Bot badge "BOT" | N/A |
uxc subscribediscord-gatewayGET /gateway/botREADYGUILD_CREATEMESSAGE_CREATEIDENTIFYuxc subscribe start https://discord.com/api/v10 \
'{"intents":4609,"device":"uxc-discord"}' \
--transport discord-gateway \
--auth discord-bot \
--sink file:$HOME/.uxc/subscriptions/discord-gateway.ndjson4609GUILDS | GUILD_MESSAGES | DIRECT_MESSAGES32768MESSAGE_CONTENTdiscord-openapi-cliuxc subscribe start ... --transport discord-gateway ...uxc link --schema-url ...--schema-url <other-url>--textokkindprotocoldataerror--input-jsondiscord-openapi-cli <operation> ...uxc https://discord.com/api/v10 --schema-url <discord_openapi_spec> <operation> ...post:/channels/{channel_id}/messagesreferences/usage-patterns.md