Your community on Discord can send direct messages to your bot; they arrive in the PALMS inbox and your team answers from there. You create the bot in the Discord Developer Portal and paste its token. About 5 minutes, free.
Before you start
- A Discord account: it becomes the owner of the bot.
- Ideally your community’s Discord server, where you’ll add the bot — see add the bot to your server.
Create the bot
- Open the Discord Developer Portal and click New Application. Name it like your business, accept the terms and click Create.
- Optional: add your logo as the App Icon (General Information).
- Open the Bot tab. Under Token, click Reset Token, confirm (you may be asked for your password or 2FA code) and copy the token.
No “privileged intents” are needed: PALMS only reads direct messages sent to the bot.
Paste the token
Paste the token in PALMS and click Connect. PALMS checks it with Discord, shows your bot’s name and picture, stores the token encrypted and starts listening to the bot’s direct messages.
Keep the token secret: anyone who has it controls the bot. If it leaks, reset it in the portal and reconnect.
Add the bot to your server
People can message a bot when they share a server with it.
- In PALMS, click Add to your server. Discord opens.
- Choose your server and click Authorize. You need the Manage Server permission on that server.
The bot appears in the member list. Members click its name, then Message.
Test your connection
- In Discord, click the bot’s name in your server, then Message.
- Send the code PALMS shows.
- PALMS answers in Discord and the step shows a success tick.
What works on Discord
- Direct messages to the bot, with text and attachments. Messages in server channels aren’t brought into PALMS.
- You can answer at any time with text.
- Discord limits a message to 2,000 characters.
Troubleshooting
| What you see | Why | What to do |
|---|---|---|
| Token refused | Copied partly, or reset since | Reset it again in the Bot tab and paste the new one |
| “Cannot send messages to this user” | The person shares no server with the bot, or blocks DMs | Ask them to join your server, or allow DMs from server members |
| Nothing arrives | The PALMS server’s Discord connection is stopped | Ask your PALMS administrator: only one PALMS server instance should run the Discord connection |
Reconnect
Reset the token in the Bot tab, then use Reconnect on the channel and paste it. PALMS checks it’s the same bot; conversations stay as they are.