302 AI Studio

Discord

Deployment Steps

1. Create a Discord Application

  1. Visit the Discord Developer Portal
  2. Click "New Application" to create a new app
  3. Enter an application name and create it

2. Create a Bot

  1. In the application settings, open the "Bot" tab
  2. Click "Add Bot" to create the bot
  3. Configure bot settings:
    • Enable "Message Content Intent"
    • Enable "Server Members Intent" (if needed)

3. Get the Bot Token

  1. On the Bot page, click "Reset Token" to generate a new token
  2. 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

  1. In "OAuth2" > "URL Generator", select:
    • Scopes: bot, applications.commands
    • Bot Permissions: Send Messages, Read Message History, Attach Files, etc.
  2. Copy the generated URL and open it in your browser
  3. 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

ConfigurationTypeDefaultDescription
enabledbooleantrueWhether to enable the Discord channel
tokenstring-Bot Token
dm.policystring"pairing"DM policy: open/pairing/allowlist
dm.allowFromstring[][]Allowed user ID list for DMs
group.policystring"allowlist"Group policy: open/allowlist/disabled
group.allowFromstring[][]Allowed server/channel ID list
group.requireMentionbooleantrueWhether @bot mention is required

Feature Support

FeatureStatus
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.

On this page