Docs/Plugins

Logs plugin

Clean logging for server activity and moderation actions. The logs plugin has no commands - it listens to Discord events and posts messages to configured channels.

#Configuration

yaml
# Server events: joins, leaves, message edits/deletes, voice activity, nickname/role changes
server_log_channel_id: "1234567890123456789"

# Moderation: infractions, automod, censor, cleans, voice mod, case updates
moderation_log_channel_id: "1234567890123456789"

The legacy log_channel_id field still works as a fallback for moderation logs if moderation_log_channel_id is not set.

Infraction case logs can optionally use a dedicated channel via plugins.infractions.config.case_log_channel, which overrides moderation_log_channel_id for case-related lines only.

#Message tracking

While the bot is running, messages in servers with server_log_channel_id set are saved to the database. If a message is deleted after a bot restart, Dreamliner can still log the delete using the stored author, channel, and content.

Messages are retained for 42 days. Bot messages are not tracked.

#Log layout

Each log is a Components v2 message styled like command responses:

  • Colorless container
  • Section with the member's avatar thumbnail (when available)
  • Bold title (e.g. ๐Ÿ“ฅ Join)
  • Information block with labeled fields: Member, Target, Moderator, Channel, etc.
  • Member, Target, and Moderator use clickable mentions with ID in backticks: <@user> (id)
  • Channel fields use clickable channel mentions: <#channel> (id)
  • Role changes use role mentions with IDs in backticks
  • Separator + extra block for message content or before/after edits

No @mentions are used and allowedMentions is disabled on every log message.

#Server log events

EventTitle
Member join๐Ÿ“ฅ Join
Member leave๐Ÿ“ค Leave
Message edit๐Ÿ“ Edit Message
Message delete๐Ÿ—‘๏ธ Delete Message
Voice join/leave/move๐Ÿ”Š / ๐Ÿ”‡ / ๐Ÿ”€
Nickname change๐Ÿ“ Nickname Change
Role change๐ŸŽญ Role Change

Bot accounts are excluded from member and message logs.

#Moderation log events

SourceTitle
/warn, /mute, /ban, etc.โš ๏ธ Warn #42, ๐Ÿ”‡ Mute #43, โ€ฆ
/infraction reason|duration|delete๐Ÿ“ Case Update, ๐Ÿ”ด Case Delete
/clean๐Ÿงผ Clean
Automod (spam, rate limit, raid)๐Ÿค– Automod, ๐Ÿšจ Raid Detected
Censor (word filter)๐Ÿšซ Censor
/voice move, move-all, disconnect๐Ÿ”€ Voice Move, ๐Ÿ”‡ Voice Disconnect
Mute/tempban expiry๐Ÿ”Š Mute Expired, โœ… Temp Ban Expired
Failed DMs๐Ÿšง DM Failed