Discord Webhook Integration
Configure your ErrorLogDashboard to send error notifications directly to your Discord server using Discord webhooks.
Webhook notifications appear as rich embed cards in your Discord channel with formatted error details.
Step 1: Create a Discord Webhook URL
- Open your Discord server and go to Server Settings
- Navigate to Integrations → Webhooks
- Click New Webhook or Create Webhook
- Configure your webhook:
- Name: ShitCode Error Dashboard (or any name you prefer)
- Channel: Select the channel where errors should be posted
- Optionally upload an avatar for the webhook
- Click Copy Webhook URL
Your webhook URL will look like:
https://discord.com/api/webhooks/1234567890/AbCdEfGhIjKlMnOpQrStUvWxYz
Step 2: Configure Webhook in ErrorLogDashboard
- Navigate to your project in the ErrorLogDashboard
- Click on Webhooks or Configure Webhooks
- Fill in the webhook form:
- Name: Discord Notifications
- Webhook URL: Paste the Discord webhook URL from Step 1
- Webhook Type: Select Discord from the dropdown
- Secret Token: Leave empty (not used for Discord)
- Click Add Webhook
Step 3: Test Your Webhook
You can test the webhook connection before saving:
- After entering the Discord webhook URL, click Test Connection
- Check your Discord channel for a test message
- If successful, you'll see a confirmation message
Discord Message Format
When an error occurs, your Discord channel will receive a rich embed message containing:
- Title: 🚨 New Error in [Project Name]
- Description: AI-generated summary of the error
- Color: Red for new errors, green for resolved
- Fields:
- Project Name and ID
- Error Message
- Status (Open/InProgress/Resolved)
- Error ID (for tracking)
- Stack Trace (formatted with code block)
- Timestamp: When the error occurred
- Footer: ShitCode Error Dashboard
Example Discord Embed
🚨 New Error in My Project
NullReferenceException: Object reference not set to an instance
Error Message
Object reference not set...
Status
Open
Stack Trace
at MyApp.Service.GetUser(...) at MyApp.Controller.Index(...)
ShitCode Error Dashboard • 2025-12-10 15:23:31 UTC
Troubleshooting
Webhook test fails
- Verify the webhook URL is correct and complete
- Make sure you selected "Discord" as the webhook type
- Check that the webhook hasn't been deleted in Discord
- Ensure the bot has permissions to post in the target channel
No messages appear in Discord
- Check that the webhook is marked as "Active" in the dashboard
- Trigger a test error to verify the webhook is being called
- Check Discord channel permissions
Best Practices
- Create separate channels for different environments (production, staging, development)
- Use channel notifications settings to control @mentions for critical errors
- Set up multiple webhooks for different error severity levels if needed
- Regularly review and clean up old webhooks in Discord's integration settings
Pro Tip: You can use Discord's role mentions in channel settings to automatically notify your team when critical errors occur.