Logs
A record of everything that happens in your server, 74 events in 8 categories, from deleted messages to role and permission changes, with who did it and why, in the channels you choose.
The Logs module keeps a record of what happens in your server, so your staff can check it later: deleted and edited messages (with what they said), who banned whom, who changed a role's permissions, who joined and left, voice activity, invites, webhooks and much more. 74 events are grouped into 8 categories, and each one can go to its own channel.
Wherever Discord's audit log has the information, logs say who did it and why, with links to jump to the message, channel or event.
How it works
- Every event belongs to a category: Messages, Members, Moderation, Voice, Channels & threads, Roles, Server, and Invites & integrations.
- Each log goes to the channel of its event if you set one; otherwise to the channel of its category; otherwise to the default channel. With no channel at all, it isn't sent.
- Information about who did something (bans, role changes, channel deletions…) comes from Discord's audit log, so DotBot needs the View Audit Log permission.
- Discord doesn't say what a deleted or edited message said, so DotBot keeps messages for a few days (7 by default) to be able to show them.
- Logs that happen together are grouped in one message (up to 10), to reduce channel traffic during bursts.
Quick start
- Open Logs → Setup and use Create log channels.
- Choose A channel per category (message-logs, member-logs, mod-logs, voice-logs, channel-logs, role-logs, server-logs and invite-logs) or One default channel (#logs).
- Optionally pick up to 10 roles that can see the logs (they can read but not write; administrators always see everything).
- Click Create channels. DotBot creates a private "Logs" category and sets the default or category destinations. Events with a custom channel keep their destination.
- Click Send test to check that every channel receives logs.
Tip
Prefer to use your own channels? Just pick a Default channel and leave the categories empty: everything goes there.
Setup
Status card
Checks DotBot's permissions and your log channels and tells you what's wrong: missing View Audit Log (with how many enabled events need it), missing Message Content (deleted and edited messages won't show their text), a log channel that no longer exists, isn't a text channel, or where DotBot can't see, write or attach files, the last error when sending to a channel, and events that are on but have no channel. If DotBot isn't answering (for example, while it restarts), the card says so and keeps trying.
Log channels
| Setting | What it does |
|---|---|
| Default channel | Everything that doesn't have its own channel goes here. Use a private channel only the staff can see. |
| Category channels | Optionally give each category its own channel, and turn whole categories on or off. Each shows how many logs it sent in the last 7 days. |
The Activity chart shows how many logs were sent per day in the last 7 days.
Events
Choose exactly what's logged. Search events, filter by category, or turn all on or off. Each event can have its own channel; if empty, it goes to its category's channel. If a category is off, none of its events are logged. Tags show which events say who did it, which need View Audit Log and which need Message Content.
Messages
| Event | What it logs |
|---|---|
| Message deleted | Who wrote it, what it said, its attachments and, if a moderator deleted someone else's message, who deleted it. |
| Message edited | The text before and after, with a link to the message. |
| Messages deleted in bulk | A purge or a ban that deletes messages, with a .txt file of what they said. |
| Message pinned / unpinned | The message and who pinned or unpinned it. |
Members
| Event | What it logs |
|---|---|
| Member joined | Account age (flagging new accounts), whether it's a bot and the member count. |
| Member left | When they had joined and the roles they had. |
| Roles added / removed | Which roles, and who gave or removed them. Roles Discord gives or removes on its own (the Server Booster role, linked roles, the ones members pick in Channels & Roles) aren't in the audit log, so they're logged a few seconds later without who did it. |
| Nickname changed | By themselves or by a moderator. |
| Name changed | Discord username or display name. |
| Avatar changed | Avatar or server avatar. |
| Server boosted / Boost removed | When members start or stop boosting. |
| Rules accepted | A new member accepted the server rules (membership screening). |
Two extra options: Flag new accounts shows a warning in join logs for accounts younger than a number of days (7 by default, 0 = never; nobody is kicked), and Roles on leave lists the roles a member had when they left, useful to give them back.
Moderation
Member banned, unbanned, kicked, timed out, timeout removed, members pruned, server mute, server deafen, disconnected from voice, moved by a moderator, and AutoMod action (Discord's AutoMod blocked a message, sent an alert or timed someone out, with the rule and matched word). These come from the audit log, so they include who did it and the reason.
Voice
Joined voice, left voice (and how long they stayed), switched voice channel, mute, deafen, screen share, camera, voice channel status, and Stage started, updated and ended. Mute, deafen, screen share and camera are off by default because they're very frequent in large servers.
Channels & threads
Channel created, updated (name, topic, slowmode, age restriction, category, bitrate, user limit…), deleted, channel permissions (what was allowed, denied or reset for a role or member), and thread created, updated and deleted.
Roles
Role created, role updated (name, color, icon, shown separately, mentionable, and every permission granted or revoked), and role deleted. Reordering roles isn't logged.
Server
Server updated (name, icon, banner, verification level, system and rules channels, vanity URL, owner…), emojis, stickers and soundboard sounds added, updated or deleted, server events created, updated or deleted, Discord AutoMod rules created, updated or deleted, onboarding changed and command permissions changed.
Invites & integrations
Invite created (channel, max uses, expiry) and deleted (not when it expires on its own), webhook created, updated and deleted, integration added, updated and removed, and bot added (and by whom).
Filters
Remove noise from your logs:
| Filter | What it does |
|---|---|
| Ignored channels | Messages, voice activity and threads in these channels aren't logged. Pick a category to ignore all its channels. Up to 100. Channel changes made by moderators are always logged. |
| Ignored roles | Messages and voice activity of members with these roles aren't logged. What moderators do to them is still logged. Up to 50. |
| Ignored people and bots | Nothing these people or bots do, and nothing done to them, is logged. Up to 100. |
| Ignore bot messages | Deleted and edited messages from bots and webhooks aren't logged (they edit their own messages often: polls, counters, music players). On by default. |
| Ignore changes made by bots | Roles, channels and other changes made by bots (including DotBot) aren't logged. Off by default so you see everything. |
Appearance
| Setting | What it does |
|---|---|
| Style | Detailed: a card per log with its color, avatar and every detail. Compact: one line per log, easy to scan in busy servers. |
| Colors | The color bar of each card by what happened: something new (joins, roles added, channels created), something removed (deletes, leaves, bans), something changed (edits, updates) and other. Compact logs don't use colors. |
| What each log shows | Turn on or off the avatar, who did it, the reason, IDs (useful to search later or ban someone who left), links to the message or channel, and the time (shown in each person's time zone). |
| Group logs | Several logs that happen together (within about a second and a half) go in the same message, up to 10. Turn it off to get one message per log. |
A live preview shows how logs will look. Changes apply to the next logs; logs already sent don't change.
Message history
To show what a deleted or edited message said, DotBot keeps messages in its database for a few days.
| Setting | What it does |
|---|---|
| Keep messages | Needed to show what deleted and edited messages said. Off: only messages DotBot still has in memory (the last few minutes) are shown, and saved messages are deleted. Only messages from channels that aren't ignored, and only while message logs have a channel. |
| Keep for | Between 1 and 14 days (7 by default). Older messages are deleted every hour. A server keeps up to 1,000,000 messages: past that, the oldest are deleted first. Past 64 MB of text in a day, the rest of that day's messages are kept shortened (the first 200 characters). |
| Attachments | Names and links of the files a deleted message had (Discord may delete the files themselves after a while). |
| File for bulk deletes | A .txt file with every message of a purge or bulk delete, attached to its log. Without the Attach Files permission in the log channel, or with too many of these files waiting to be sent, the log is sent without the file and says so. |
The page shows how many messages are saved and the oldest date, with a button to delete all saved messages. Messages are also deleted as soon as their deletion is logged and when you turn off Logs or this option.
Permissions DotBot needs
View Audit Log (to say who did things, and for most moderation, role, channel and invite events), View Channel, Send Messages and Attach Files in log channels, and Manage Channels to create the log channels automatically. If you use your own bot, it needs the Message Content intent to log what messages said.
FAQ
Why don't my logs say who deleted a message?
Discord only records message deletions in the audit log when a moderator deletes someone else's message. When people delete their own messages, Discord doesn't say so, and the log shows only the author.
Why does a deleted message show no text?
DotBot can only show what a message said if it kept it before it was deleted. Make sure Keep messages is on, the channel isn't ignored, and (with your own bot) the Message Content intent is enabled. Messages older than your retention time are no longer kept.
Messages from bots (with Ignore bot messages on), from ignored members or roles, and system messages aren't logged when they're deleted either, even hours later and even with Keep messages off (DotBot keeps only a mark without any text for up to 14 days). That includes the notices DotBot removes by itself, like a Social live notice when the stream ends.
Can I send each kind of log to a different channel?
Yes. Give each category its own channel in Setup, or give a single event its own channel on the Events page.
The voice logs are flooding my channel. What can I do?
Turn off the busiest voice events (mute, deafen, screen share, camera are off by default), ignore busy channels, or give voice logs their own channel. You can also switch to the Compact style.
Does DotBot log its own actions?
Yes, unless you turn on Ignore changes made by bots. Actions by DotBot's modules, like roles given by Autoroles, show up like any other change.
Are the logs from Moderation the same as these?
They're complementary. Moderation logs its numbered cases (with buttons to undo or edit the reason). The Logs module records everything that happens in the server, including things that aren't moderation. Many servers use both, in separate channels.
How long are deleted messages kept?
Between 1 and 14 days, as you choose (7 by default). After that they're deleted automatically every hour.
Do I need a separate channel for each category?
No. One default channel works fine for most servers. Separate channels make it easier to follow specific things, like a channel only for moderation.
Why do some events say "Needs View Audit Log"?
Those events come from Discord's audit log. Without that permission, DotBot either can't log them or can't say who did them. Give DotBot's role the View Audit Log permission in Server Settings → Roles.