Discord
Deployment Steps
1. Create a Discord Application
- Visit the Discord Developer Portal
- Click "New Application" to create a new app
- Enter an application name and create it
2. Create a Bot
- In the application settings, open the "Bot" tab
- Click "Add Bot" to create the bot
- Configure bot settings:
- Enable "Message Content Intent"
- Enable "Server Members Intent" (if needed)
3. Get the Bot Token
- On the Bot page, click "Reset Token" to generate a new token
- Copy and store the token securely
The Bot Token is sensitive information. Do not leak it or commit it to your code repository.
4. Invite the Bot to Your Server
- In "OAuth2" > "URL Generator", select:
- Scopes:
bot,applications.commands - Bot Permissions:
Send Messages,Read Message History,Attach Files, etc.
- Scopes:
- Copy the generated URL and open it in your browser
- Choose the server you want to add the bot to and authorize
5. Start the Service
Complete this channel’s configuration in the 302 AI Studio client under Settings → Vibe Mode.
Configuration Reference
| Configuration | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Whether to enable the Discord channel |
| token | string | - | Bot Token |
| dm.policy | string | "pairing" | DM policy: open/pairing/allowlist |
| dm.allowFrom | string[] | [] | Allowed user ID list for DMs |
| group.policy | string | "allowlist" | Group policy: open/allowlist/disabled |
| group.allowFrom | string[] | [] | Allowed server/channel ID list |
| group.requireMention | boolean | true | Whether @bot mention is required |
Feature Support
| Feature | Status |
|---|---|
| Direct Messages | ✅ Supported |
| Server Channels | ✅ Supported |
| Images | ✅ Supported |
| Files | ✅ Supported |
| Embeds | ✅ Supported |
| Reactions | ✅ Supported |
| Slash Commands | ✅ Supported |
Troubleshooting
Bot not responding to messages
- Confirm the bot has been invited to the server
- Check whether the bot has permission to read messages
- Confirm "Message Content Intent" is enabled
Permission errors
- Check the bot role permissions in the server
- Confirm channel permission settings are correct
More Information
For more detailed configuration options, advanced features, and complete configuration reference, please refer to the official OpenClaw documentation.