Discord
Blokkio has two Discord apps:
| App | Use it when | What you need |
|---|---|---|
| Discord | You want to post in several channels, start threads, or read channels and messages | A bot you add to your server |
| Discord (webhook) | You only need to post into one channel | A webhook URL from the channel's settings |
Discord (bot)
1. Create a bot and get its token
- Open the Discord Developer Portal and click New Application.
Give it a name, for example
Blokkio. - Open Bot and click Reset Token. Copy the token: Discord shows it only once.
- If your workflows read message text (List messages), turn on Message Content Intent on the same page.
- Open OAuth2 → URL Generator, tick the
botscope, then the permissions your workflows need: View Channels, Send Messages, Create Public Threads, Create Private Threads, Send Messages in Threads and Read Message History. - Open the generated URL, pick your server and click Authorize. The bot now appears in the member list.
2. Create the connection
- In Blokkio, go to Apps and open Discord.
- Click Connect, give the connection a name, paste the token into Bot token and click Create.
- Use ⋯ → Test connection on the Connections page. Blokkio calls
GET /users/@meand reports Connected — discord.com answered 200.
Blokkio sends the token as Authorization: Bot <token> to https://discord.com/api/v10, and only to
discord.com.
Finding ids
Actions take channel, server and message ids (long numbers). In Discord, turn on Settings → Advanced → Developer Mode, then right-click a channel, server or message and choose Copy … ID. You can also use the List servers and List channels actions.
Actions
| Action | What it does | Main inputs |
|---|---|---|
| Send message | Posts a message to a channel or thread | Channel ID, Message (up to 2000 characters, Markdown), Embeds (JSON), Reply to message ID, Read aloud |
| Create thread | Starts a thread in a text or forum channel | Channel ID, Thread name, First message (required for forum channels), Thread type (11 public, 12 private), Auto-archive after (minutes) |
| Create thread from message | Starts a thread on an existing message | Channel ID, Message ID, Thread name |
| List channels | Channels of a server | Server ID |
| List servers | Servers the bot is in | None |
| List messages | Latest messages of a channel | Channel ID, How many (1–100), Before / After message ID |
The output of Send message includes the new message's id, which you can pass to Create thread from message.
Incoming webhook
1. Create the webhook
- In Discord, open the channel's Edit Channel → Integrations → Webhooks and click New Webhook.
- Optionally change its name and avatar, then click Copy Webhook URL. It looks like
https://discord.com/api/webhooks/123…/AbC….
Anyone with this URL can post to the channel, so treat it like a password.
2. Create the connection
- In Blokkio, go to Apps and open Discord (webhook).
- Click Connect and paste the URL into Webhook URL. To keep it in one place, store it as a secret and click Use secret.
- Test connection reads the webhook's details and doesn't post anything.
Blokkio only sends the request when the URL is on discord.com (or discordapp.com, canary.discord.com,
ptb.discord.com); any other address is refused.
Actions
| Action | What it does | Main inputs |
|---|---|---|
| Send message | Posts to the webhook's channel and returns the message | Message, Post as (name), Avatar URL, Embeds, Thread ID, New forum post title, Read aloud |
| Edit message | Changes a message the webhook sent | Message ID, Message, Embeds, Thread ID |
| Delete message | Deletes a message the webhook sent | Message ID, Thread ID |
Troubleshooting
| Message | What to do |
|---|---|
HTTP 401 | The bot token was reset or is wrong. Edit the connection and paste the current token. |
HTTP 403 … Missing Access / Missing Permissions | The bot isn't in that server, can't see the channel, or lacks a permission from step 4. |
HTTP 404 … Unknown Channel / Unknown Webhook | Wrong id, or the webhook was deleted. |
| Refusing to send its credentials to … | The webhook URL isn't a Discord address. Copy it again from Discord. |
| Messages arrive without text in List messages | Turn on Message Content Intent for the bot. |