Webhooks & Notifications
RoleLogic can send notifications to Discord channels when roles change. Keep your team informed with an automatic audit trail.
Setting Up Webhooks
Step 1: Grant Permission
RoleLogic needs "Manage Webhooks" in the target channel.
- Go to channel settings in Discord
- Open Permissions
- Add RoleLogic and enable "Manage Webhooks"
Step 2: Create Webhook Log
- In dashboard, go to Logs or Webhooks section
- Click "Create New Log"
- Select target channel
- Configure message content
- Save
Step 3: Attach to Rules
- Open a rule in the editor
- Find the "Log" or "Webhook" option
- Select your configured log
- Save the rule
Using Placeholders
Placeholders add dynamic information to messages.
{user.mention} received: {roles.added.names}
Becomes:
@JohnDoe received: VIP, Premium
Common Placeholders
| Placeholder | Output |
|---|---|
{user.mention} | @JohnDoe |
{user.tag} | JohnDoe#1234 |
{roles.added.names} | VIP, Premium |
{roles.removed.names} | Guest, Trial |
{server.name} | My Server |
{timestamp} | Discord timestamp |
{timestamp:r} | "5 minutes ago" |
See Placeholders Reference for the full list.
Example Messages
Simple Notification
🔔 {user.mention} received: {roles.added.names}
Detailed Log
**Member:** {user.tag}
**Added:** {roles.added.names}
**Removed:** {roles.removed.names}
**Time:** {timestamp}
Customization
- Webhook name: Custom sender name (default: "RoleLogic")
- Avatar URL: Custom avatar image
- Accent color: Color for embed messages
Premium Features
- No watermark: Clean notifications without branding
- Advanced components: Enhanced message formatting
Tips
- Don't over-log: Too many notifications = noise
- Meaningful messages: Include who, what, when
- Protect channels: Use private staff channels for sensitive logs
- Review periodically: Check logs to verify rules work
Troubleshooting
Messages not appearing?
- Check "Manage Webhooks" permission
- Verify log is attached to an enabled rule
- Confirm rule is actually triggering
Placeholders showing raw?
- Check for typos
- Use correct format:
{placeholder.name}
Related
- Placeholders Reference — Complete list
- Activity Log — Track configuration changes
- Best Practices — Logging tips