Server logs
Six categories, each with its own channel — set them up before anything else.
Ledra writes events to log channels you choose. There are six categories, and each one can go to a different channel or be turned off entirely.
Setting it up#
The fast way — everything into one channel:
/logging set category:all channel:#server-logs
The way most established servers do it:
/logging set category:moderation channel:#mod-logs
/logging set category:automod channel:#mod-logs
/logging set category:messages channel:#message-logs
/logging set category:members channel:#join-leave
/logging set category:roles channel:#server-changes
/logging set category:channels channel:#server-changes
Then check:
/logging status
It lists all six categories and their channel, or disabled.
What each category contains#
| Category | Events |
|---|---|
messages |
Message edited, message deleted, bulk deletion (with a preview of the first 10) |
members |
Member joined, member left, nickname changed |
roles |
Role created, deleted, edited — and members gaining or losing roles |
channels |
Channel created, deleted, edited |
moderation |
Every Ledra moderation action, plus bans and timeouts done outside Ledra |
automod |
Every AutoMod rule that fires, with the message and the action taken |
Detail worth knowing#
Message logs show the before and after of an edit, and the content of a deleted message. Bot messages are ignored. If AutoMod already handled and logged a message, it is not logged twice as an edit.
Member joins include the account creation date, which is the fastest way to recognise a raid — a wave of accounts created the same day is not a coincidence.
Member leaves list the roles the member had, so you can restore them if someone was removed by mistake.
Moderation logs include actions taken with Discord's own UI or another bot. Ledra cannot know who did those, so it points you at Discord's audit log.
Permissions#
When you run /logging set, Ledra checks it can actually View Channel,
Send Messages and Embed Links in that channel. If any are missing, it
refuses and names them.
That means a successful reply is a real guarantee, not a hopeful one.
Turning it off#
/logging disable category:messages
/logging disable category:all
Disabling a category does not delete anything already posted.
Practical advice#
Do logging first. Every other feature becomes reversible once you can see what it did. Setting up AutoMod without an AutoMod log means punishments you never find out about.
Lock your log channels down. Deny Send Messages for @everyone, and
consider denying View Channel too. Message logs contain deleted messages —
including ones deleted for good reason.
Message logging is the loud one. On a busy server it produces far more volume than everything else combined. Give it its own channel so it does not bury your moderation log.
A deleted log channel is not an error. If the channel disappears, Ledra
quietly stops posting that category. Point it somewhere new with
/logging set when you notice.