Discord Integration
Connect Oplix with your Discord server to automatically collect feedback from your community and streamline your feedback management workflow.
Features
- Automatic Feedback Collection: Convert Discord messages into structured feedback
- AI-Powered Categorization: Automatically categorize feedback by type and severity
- Real-time Notifications: Get notified when important feedback is submitted
- Community Engagement: Respond to feedback directly in Discord
Prerequisites
- Discord server with admin permissions
- Oplix account with an active project
- Discord bot permissions (if using custom bot)
Setup Guide
Step 1: Enable Discord Integration
- Go to your Oplix dashboard
- Navigate to Integrations → Discord
- Click “Connect Discord Server”
- Authorize Oplix to access your Discord server
Step 2: Configure Feedback Channels
Select which Discord channels should be monitored for feedback:
# Example configuration
feedback_channels:
- "#feedback"
- "#bug-reports"
- "#suggestions"
- "#general" # Optional: monitor general chat
Step 3: Set Up Feedback Commands
Configure Discord slash commands for structured feedback submission:
/feedback bug "Game crashes when opening inventory"
/feedback suggestion "Add dark mode to settings"
/feedback praise "Love the new character animations!"
Step 4: Configure AI Processing
Enable AI-powered feedback analysis:
- Auto-categorization: Automatically sort feedback by type
- Sentiment analysis: Detect positive/negative feedback
- Priority scoring: Identify critical issues
- Duplicate detection: Merge similar feedback
Discord Bot Commands
For Players
/feedback <type> <message>
/bug <description>
/suggestion <idea>
/praise <compliment>
For Moderators
/feedback-stats
/feedback-export
/feedback-moderate <id> <action>
For Admins
/oplix-config
/oplix-sync
/oplix-webhook <url>
Webhook Configuration
Set up webhooks to receive real-time notifications:
// Example webhook payload
{
"event": "feedback_submitted",
"data": {
"id": "fb_123456",
"type": "bug",
"message": "Game crashes when opening inventory",
"author": {
"discord_id": "123456789",
"username": "PlayerName#1234"
},
"channel": "#bug-reports",
"timestamp": "2025-01-15T10:30:00Z"
}
}
Advanced Features
Custom Bot Integration
For advanced users, integrate with your existing Discord bot:
const { Client, GatewayIntentBits } = require('discord.js');
const { Oplix } = require('@oplix/js-sdk');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
});
const oplix = new Oplix({
apiKey: process.env.OPLIX_API_KEY,
projectId: process.env.OPLIX_PROJECT_ID
});
client.on('messageCreate', async (message) => {
if (message.channel.name === 'feedback') {
await oplix.submitFeedback({
type: 'general',
message: message.content,
source: 'discord',
metadata: {
author: message.author.username,
channel: message.channel.name,
guild: message.guild.name
}
});
}
});
Role-Based Permissions
Configure different permissions for different Discord roles:
permissions:
admin:
- view_all_feedback
- moderate_feedback
- export_data
moderator:
- view_feedback
- moderate_feedback
member:
- submit_feedback
- view_own_feedback
Analytics Integration
Track Discord engagement metrics:
- Feedback volume by channel and time
- User engagement and participation rates
- Response times to community feedback
- Sentiment trends over time
Troubleshooting
Bot Not Responding
- Check bot permissions in Discord
- Verify bot is online and connected
- Ensure Oplix integration is enabled
- Check API key configuration
Feedback Not Appearing
- Verify channel configuration
- Check webhook endpoints
- Review API rate limits
- Confirm message format
Permission Issues
- Ensure bot has required permissions
- Check role hierarchy
- Verify channel permissions
- Review server settings
Best Practices
- Clear Guidelines: Provide feedback guidelines in your Discord
- Moderation: Set up proper moderation for feedback channels
- Response Protocol: Establish how you’ll respond to feedback
- Regular Reviews: Periodically review and update integration settings
Support
Need help with Discord integration?
- Documentation: Discord Developer Portal
- Community: Join our Discord server
- Support: Email support@oplix.com
- Examples: Check our GitHub repository