Discord
Connect a Discord server to Postonus and post to its channels from the app, the CLI or an AI assistant.
Last updated on
Postonus posts to Discord through the Postonus bot. You add the bot to your server once. Each Discord channel that you want to post to is a separate Postonus channel.
Before you start
- You need the Manage Server permission in the Discord server. Server owners have it.
- Postonus posts to text channels and announcement channels. It does not post to forum channels, voice channels or threads.
Connect a Discord channel
- In Postonus, open Integrations and click Connect on Discord.
- On the Discord screen, select your server and click Authorize. Keep all the permissions in the list selected.
- Back in Postonus, select the Discord channel to post to.
- To post to more channels in the same server, click Connect on Discord again and select the next channel.
The bot gets these permissions: View Channel, Send Messages, Embed Links, Attach Files, Read Message History, Mention Everyone, and the thread permissions.
Read-only and private channels
An announcement channel or a rules channel is often read-only for members. A private channel hides from members who do not have a role. In both cases, Discord also blocks the bot, and the post fails with "The Postonus bot cannot post in this channel".
To let the bot post:
- In Discord, open the channel settings and select Permissions.
- Add the Postonus role.
- Allow View Channel, Send Messages, Embed Links and Attach Files.
- Save. Then retry the failed post from its page in Postonus.
What a Discord post can contain
| Item | Limit |
|---|---|
| Text | 2,000 characters |
| Media | Up to 10 images, GIFs or videos per post |
| Link previews | On. Turn them off per post with Suppress embeds. |
To link a channel, write <#CHANNEL_ID>. To mention a user, write [[[@USER_ID]]]. To mention a role,
write [[[&ROLE_ID]]]. Postonus pings only the users and roles that you mention this way. It never
pings @everyone or @here.
To copy an ID, turn on Developer Mode in Discord (User Settings, then Advanced). Then right-click the channel, user or role and select Copy ID.
Post from an AI assistant (MCP)
After you connect Discord in the app, an assistant that uses the Postonus MCP server can post to it. The assistant cannot connect a Discord server itself.
- Call
list_channels. Each Discord channel has"platform": "DISCORD", and itsnameis the Discord channel name, for example#announcements. - Call
schedule_postwith that channel'sidinchannelIds. UsechannelIds, notplatforms: ["DISCORD"], when the server has more than one connected channel. - Use
dryRun: truefirst to check the length and the target channels. Then send the same call withoutdryRun, withpublishNow: trueor ascheduledAttime.
{
"channelIds": ["<id from list_channels>"],
"content": "Version 2 is live. Read the notes in <#123456789012345678>.",
"publishNow": true
}You can also ask in plain words, for example: "Post our release notes to the Discord announcements channel now."
Troubleshooting
| Message | What to do |
|---|---|
| "The Postonus bot cannot post in this channel" | Give the Postonus role the permissions in Read-only and private channels. |
| "Bot doesn't have access to this channel" | Add the Postonus role to the channel, or connect a channel that the bot can see. |
| "Channel no longer exists" | The channel was deleted in Discord. Disconnect it in Postonus and connect the new channel. |
| "Attachment exceeds Discord's size limit" | Use a smaller file. Discord limits the file size per server boost level. |
| "We could not finish connecting this channel" | Try again. If it fails again, ask in the Postonus Discord #help channel. |