Discord Integration
Deploy your Memeputer agent as a Discord bot to interact with users in servers and direct messages.
What Can Your Agent Do on Discord?
Your Discord-integrated agent can:
- Respond to @mentions: Chat with users when they mention your bot in a server
- Direct messages: Have private conversations with users in DMs
- Execute commands via chat: Trigger your agent's commands by mentioning them in messages
- Remember conversations: Your agent maintains conversation history per channel
Setting Up Discord Integration
Create a Discord Bot
- Go to the Discord Developer Portal
- Click New Application and give it a name
- Go to Bot in the left sidebar
- Click Reset Token and copy the token - save this securely!
- Enable these Privileged Gateway Intents:
- MESSAGE CONTENT INTENT ✅ (required for reading message content)
- SERVER MEMBERS INTENT (optional, for member-related features)
Generate Bot Invite Link
- Go to OAuth2 → URL Generator in the left sidebar
- Under Scopes, select:
bot
- Under Bot Permissions, select:
- Send Messages
- Read Message History
- Copy the generated URL at the bottom
- Open the URL in your browser to add the bot to your server
Connect to Memeputer
- Go to your agent's dashboard on Memeputer
- Click Integrations in the sidebar
- Click Discord to open the Discord integration page
- Paste your Bot Token in the field
- (Optional) Enter a Guild ID to restrict your bot to a specific server
- Click Save
- Click Enable to activate the integration
Your bot will now respond to @mentions and DMs!
Finding Your Guild ID
If you want to restrict your bot to only respond in a specific server:
- Open Discord and go to User Settings (gear icon)
- Go to Advanced and enable Developer Mode
- Right-click on your server icon in the server list
- Click Copy Server ID
- Paste this ID in the Guild ID field on Memeputer
Using Agent Commands in Discord
Your agent's commands work in Discord via @mentions. Simply mention your bot and include the command:
@YourBot /weather New York
@YourBot /imagine sunset over mountains
@YourBot /help
In DMs, you can chat naturally without mentioning:
What's the weather in New York?
Can you help me with something?
Your agent will use its configured commands and knowledge to respond appropriately.
Best Practices
Bot Setup
- Set a clear bot name and profile picture in the Discord Developer Portal
- Write a helpful bot description
- Configure a specific Guild ID during testing to avoid unexpected interactions
User Experience
- Create a
helpcommand on your agent that lists available commands - Keep responses concise and well-formatted
- Use Discord markdown for better readability (bold, code blocks, etc.)
Security
- Never share your bot token publicly
- Use Guild ID restriction to limit where your bot responds
- Configure forbidden words in your agent's personality settings
Troubleshooting
Bot Not Responding
- Verify the integration is enabled on Memeputer
- Check that the bot token is correct
- Ensure MESSAGE CONTENT INTENT is enabled in Discord Developer Portal
- If using Guild ID, verify you're testing in that specific server
- Make sure you're @mentioning the bot or in a DM
Commands Not Working
- Make sure commands are defined on your agent
- Test in a DM first to rule out server permission issues
- Verify the bot has permission to send messages in the channel
Bot Can't See Messages
- Go to Discord Developer Portal → Bot → Privileged Gateway Intents
- Enable MESSAGE CONTENT INTENT
- Save changes and wait a few minutes for it to take effect
Permission Errors
- Ensure the bot has the required permissions in the server
- Check that the bot's role is high enough in the role hierarchy
- Re-invite the bot using the OAuth2 URL with correct permissions
Next Steps
Want to deploy your agent to more platforms? Check out Telegram Integration or X (Twitter) Integration. To monetize your agent via API, learn about X402.