Discord Logging
Discord Logging
Every safezone create, edit and delete can be posted to a Discord channel as a colour-coded embed, so you always know who changed what.
Enable it
Paste your Discord webhook URL. An empty URL disables logging entirely — nothing is sent.
Config.Webhook = {
url = '', -- paste your Discord webhook URL here to enable
botName = 'BUPA Safezones',
avatar = '', -- optional image URL for the bot avatar
colors = {
create = 3066993, -- green
edit = 3447003, -- blue
delete = 15158332, -- red
},
}| Field | Purpose |
|---|---|
url |
The Discord webhook URL. Empty = logging off. |
botName |
The username the embed is posted under. |
avatar |
Optional avatar image URL for the bot. |
colors.create |
Embed colour for a newly created zone (default green). |
colors.edit |
Embed colour for an edited zone (default blue). |
colors.delete |
Embed colour for a deleted zone (default red). |
What each embed logs
Create / Edit embeds include:
- Zone — the zone's name (label).
- Admin — the player name and server id who made the change.
- Points — how many polygon points the zone has.
- Jobs — the whitelisted jobs and their minimum grades, or Everyone.
- Active rules — a list of every rule currently enabled on the zone.
- Identifiers — the admin's
discord:andlicense:identifiers. - Timestamp — a footer with the date/time and the resource name.
Delete embeds are trimmed to the essentials: the zone name, the admin, and their identifiers.
ℹ
All webhook messages are in English, independent of your ox:locale setting.
