Discord
Connect your own Discord bot to a MeDo app: post order, booking, and form alerts to a channel, show the latest messages from a channel, and list the servers and channels the bot can reach.
Discord is a connector that runs on your own Discord bot. You create the bot in the Discord Developer Portal, add it to your server, and save its token in MeDo. The app's server functions then call Discord with that token: they post messages to channels, read a channel's recent messages, and list the servers and channels the bot has joined. Messages appear under your bot's name. The bot only sees the servers you add it to, and it can post only in channels where it has Send Messages.
What you can build
- Order and booking alerts. Post the order number, items, and total — or the booking details — to a team channel each time a new one comes in.
- Form-to-channel handoffs. Send each contact or support form submission to a channel where your team picks it up.
- An announcements board. Show the latest messages from one announcements channel on a public page.
- A private release-notes tool. Write an update, preview it, and post it to a channel you choose, behind your own sign-in.
Other bot actions — editing the bot's own messages, adding reactions, pinning, starting threads, creating channels — can be built when you ask for them, and some need extra bot permissions, see Limits.
Build examples
Copy one of these into the prompt box. The first one is the smallest useful starting point.
Prepare and connect
You need a Discord account that can manage the server the app should post to. Setup takes a few minutes and happens once per bot.
- Open the Discord Developer Portal, click New Application, and give it a name. Server members see this name on every message the app posts.
- Open Bot and click Reset Token, then copy the token. Discord shows it only once. Treat the token like a password: anyone who has it can post as your bot. If the app should show or read channel messages, turn on Message Content Intent on the same page and save; without it, Discord returns members' messages with empty text.
- Open OAuth2 → URL Generator, select the bot scope and the permissions View Channels, Send Messages, and Read Message History. Open the generated link and add the bot to your server. Repeat for each server the app should use.
- In MeDo, save the token in the Discord configuration. The configuration card usually appears directly below MeDo's reply; you can also open the Skill tab in the editor's left sidebar, find Discord, and configure it there.
MeDo checks the token with Discord before saving it. If the check fails, copy a fresh token from the Bot page and save again. The token is stored for this app only and is masked when displayed again; never paste it into page content or ask MeDo to put it in the code. Each app uses one bot; to switch bots, save the other bot's token in the same place and it replaces the old one. You can start building before the token is saved — the app shows setup guidance until it is.
Use it in your app
- The app posts as your bot, from your server. Visitors never sign in to Discord and never choose the channel. The channel is fixed in the app's function or picked by the app's administrator on a settings screen.
- @everyone and @here never notify anyone. Messages built from visitor input cannot ping the whole server. The app can mention specific users or roles only when it builds that mention itself.
- Private apps are administrator-only. For a private, internal, or personal app, MeDo adds sign-in and lets only the app's administrator use the Discord features. Later sign-ups get no access.
- Submissions stay in your app. A public form saves each booking or message in the app's own database first and then posts a summary. Visitors can submit but cannot read other people's submissions.
- Each record is posted once. The app remembers which records already reached Discord, so a retried request does not post twice.
Limits and troubleshooting
The app says Discord is not configured. Save the bot token in the Discord configuration, then reload the page.
The app says the token is invalid. The token was reset or copied incompletely. Reset it again on the Bot page and save the new one.
The app says the bot lacks permission. Add the bot to the server, or give it the missing permission for that channel, then retry.
Messages show up with empty text. Turn on Message Content Intent on the Bot page and save.
No servers or channels are listed. The bot has not been added to a server yet. Open the invite link from step 3 and add it.
Related
- Connector catalog — the other connectors and what they are for.
- Keys & data safety — how app secrets such as the bot token are stored.