Overview
A client-mode connector for a curated messaging slice of the Discord API v10:
Default
BASE_ADDRESS is https://discord.com/api/v10. Topics use messaging/discord/<object>/<verb>.
Bot REST methods send
Authorization: Bot {token}. Incoming webhook execute uses only the webhook id and token in the path — do not send a Bot header on that event. Prefer Hub secrets. Discord returns 429 with retry_after under rate limits. Gateway WebSocket / Interactions inbound → MQTT is out of scope for this client-mode package. Status remains blocked until an authenticated live smoke succeeds.Basic Syntax
Events
Auth
- Create a Discord application + bot in the Developer Portal and copy the bot token. Invite the bot to a lab guild with
Send Messages(and related) permissions. - Set connector
BASE_ADDRESStohttps://discord.com/api/v10. - For Bot REST events, pass
bot_tokenon the MQTT payload soAuthorization: Bot {value.json.bot_token}resolves. - For incoming webhooks, create a channel webhook and pass
webhook_id+webhook_token(optionalwait); do not send a Bot Authorization header on Executewebhook. - Store secrets in Hub /
GET SECRET "DISCORD_BOT_TOKEN". Never commit real credentials. - Successful
GET /users/@mereturns HTTP 200 with a user JSON object.POST .../messagesreturns 200. Webhook execute returns 204 (waitfalse/omitted) or 200 (wait=true).
Example payloads
getMyUser:Install
- The template ships with the broker. List it with
-listTemplatesor fetch it from the Hub catalog. - Deploy with
-addRoutefromDiscordRestApi.lot(nothub-metadata.lot).

