Discord Integration
Suzent supports full integration with Discord, allowing you to chat with the agent via Direct Messages (DMs) or in channels.
Setup Guide
1. Create a Discord Application
- Go to the Discord Developer Portal.
- Click New Application and give it a name (e.g., "Suzent").
- Go to the Bot tab and click Add Bot.
2. Configure Intents
Suzent requires Privileged Gateway Intents to read messages.
- Scroll down to the Privileged Gateway Intents section on the Bot tab.
- Enable Message Content Intent.
- (Optional) Enable Server Members Intent if you want more robust user recognition, but it's not strictly required.
- Save Changes.
3. Get the Token
- Click Reset Token on the Bot page.
- Copy the token. This is your
DISCORD_TOKEN.
4. Invite the Bot
- Go to the OAuth2 tab > URL Generator.
- Select scopes:
bot. - Select bot permissions:
Read Messages/View Channels,Send Messages,Attach Files. - Copy the generated URL and open it in your browser to invite the bot to your server.
Configuration
Add the following to your config/social.json (Environment variables are no longer supported):
"discord": {
"enabled": true,
"token": "YOUR_DISCORD_TOKEN_HERE",
"allowed_users": []
}
Access Control
To find your Discord User ID:
- Enable Developer Mode in Discord (User Settings > Advanced).
- Right-click your username and select Copy ID.
- Add this ID to the
allowed_userslist inconfig/social.json.