Discord Integration
Discord requires specific bot permissions and gateway intents. Most issues come from missing intents.
1) Create a Discord App
- Go to the Discord Developer Portal and create a new application.
- Under "Bot", click "Add Bot".
- Copy the bot token.
2) Enable Privileged Gateway Intents
Enable Message Content Intent and Server Members Intent in the Bot settings. Without this, the bot will not receive messages.
3) Set the token on your server
export DISCORD_BOT_TOKEN="YOUR_TOKEN"
4) Invite the bot
Use the OAuth2 URL generator to invite your bot to your server with the "bot" scope and message permissions.