Logging
Logs server events to a log channel - each event type can be toggled individually.
Purpose: The logging module posts selected server events as an embed to a log channel. You pick the channel and decide per event type whether it is logged. The module is purely event driven; it has no commands.
When logging actually happens#
An event only reaches the log channel when three conditions come together: the module is enabled, a log channel is set and the relevant event type is active. If one of these is missing, the message is dropped.
- If a single type is missing from the settings, it counts as active - only an explicit off switch stops it.
- The log channel in the Logging tab is the same value as in the General tab.
- Bot status bypasses this logic (see below).
What the individual event embeds contain#
- Message deleted – Author, channel, truncated content and message ID. The content appears only if the message was still cached.
- Message edited – Author, channel plus old and new content (each truncated). Sent only when the content actually changed, and never for bot messages.
- Channel deleted – Name, type (text or voice) and ID of the deleted channel.
- Channel created / edited – Name, type and ID; for edits also topic, slowmode and category if they changed.
- Role created / edited / deleted – Name, ID, color and mentionable; for edits also the changed permissions.
- Member roles changed – Member plus the added and removed roles.
- Nickname changed – Member, old and new nickname.
- Timeout applied / removed – The affected user and, when applied, the time until which the timeout runs.
- Member joined / left – User, account or join date and the member count.
- Ban added / removed – User and, for bans, the given reason.
- Emoji added / edited / removed – Name, ID and whether the emoji is animated; for edits the old and new name.
- Invite created / deleted – Code, channel and, when created, creator, max uses and expiry.
- Server edited – Changed properties such as name, icon, banner, owner or verification level.
Bot status is logged globally#
Not controlled by the server settings
Messages such as bot online, restart, bot stopped and bot crashed concern the bot as a whole. They go to every configured log channel and cannot be toggled per event type.
Dashboard settings#
| Setting | Type | Meaning |
|---|---|---|
| Logging module enabled | Toggle | Turns the logging module on or off. While it is off, the channel and event selection cannot be edited. |
| Log channel | Text | Default channel the enabled log embeds are sent to. The same value as in the General tab - with no channel set, nothing is logged. |
| Channel per log type | Text | Optional mapping { logType: channelId }: an event type can go to its own channel (e.g. roles → #mod-log). Without an entry, the default log channel is used.Default: Empty (everything to the default channel) |
| What gets logged | Text | Toggle per event type, all enabled by default. Groups: messages (message_deleted, message_edited), channels (channel_created, channel_updated, channel_deleted), roles (role_created, role_updated, role_deleted, member_roles_updated), members (member_joined, member_left, member_nickname_updated, user_timeout, user_timeout_removed), moderation (ban_added, ban_removed), emojis (emoji_created, emoji_updated, emoji_deleted), invites (invite_created, invite_deleted) and server (server_updated).Default: All enabled |
Pitfalls#
- Logging only runs when a log channel is set and the module is enabled.
- Bot status (online, restart, crash) is handled globally and is not controlled through the server settings.
- The default channel is the same value as in the General tab; changing it affects both tabs. A channel set per log type takes precedence.