Discord Webhook Integration¶
Note: The Discord Webhook is disabled when Bot Logging is enabled.
EasyAdmin allows you to monitor admin actions using Discord's Webhook feature. This can be enabled by modifying your server's configuration file.
Creating a Webhook¶
Create the Webhook¶
- Go to the Discord channel you want to use.
- Right-click the channel name again.
- Click Edit Channel.
- Scroll down and click Webhooks.
- Click the Create Webhook button.
- Fill in a name and optionally select an avatar.
- Click Create.
Copy the Webhook URL¶
- After creating the webhook, you'll see a URL under the webhook name.
- Click Copy to copy the full URL.
🔒 Keep this URL safe. Anyone with it can post messages to your channel.
Enabling the Webhook¶
To enable the webhook:
- Open your server's configuration file.
- Find and change this line:
to:
1set ea_moderationNotification "false"1set ea_moderationNotification "https://discordapp.com/api/webhooks/fas4fsa65gs489sdg23bcv44htjh546" - Replace the
falsevalue with your actual Discord webhook URL. - Save the file and restart your server.
To test if it's working, you can kick yourself and check if a notification appears in your Discord channel.
Disabling Specific Alerts¶
If you want to disable specific types of alerts, refer to the ea_excludeWebhookFeature configuration option in the configuration guide:
Separate Webhook Channels (Version 5.81+)¶
Starting from version 5.81, EasyAdmin supports three different webhooks, allowing you to send notifications to separate Discord channels:
| Webhook Variable | Purpose |
|---|---|
ea_moderationNotification |
General moderation notifications (e.g., kicks) |
ea_reportNotification |
Notifications for player reports |
ea_detailNotification |
Notifications for convar/settings changes and spectator/freezing events |
Each webhook is set in the same way as ea_moderationNotification. If a specific webhook is not configured, EasyAdmin will fall back to using ea_moderationNotification.