Back to blog

BetterAntispam TeamHow we write these4 min read

What Does the Discord Audit Log Show? (Full List)

What the Discord audit log shows: who, what, target, changes, reason and time for 45 days, and what it does not show

The Discord audit log shows who changed what in a server, to whom, and when. Each entry is one action, such as a ban, a kick, a role change, a deleted channel, a new invite or a new webhook. Many entries also show the old and new value, and the reason if one was given. Discord keeps every entry for 45 days. The audit log does not show the content of deleted messages, message edits, people deleting their own messages, joins and leaves, or DMs. You need the View Audit Log permission to open it in Server Settings → Audit Log.

Editorial disclosure: This guide is published by BetterAntispam. The list of actions comes from Discord's audit log developer documentation. BetterAntispam facts come from the bot's source code.

What the Discord audit log shows: who, what, target, changes, reason and time for 45 days, and what it does not show

What one audit log entry contains

PartWhat it tells youExample
WhoThe member or bot that did it@ModAlex or a bot
WhatThe type of actionBanned a member
TargetWho or what was changed@spammer123 or #general
ChangesOld and new value, for many actionsName general → chat
ReasonWhy, if one was givenSpam links
WhenThe time of the actionToday at 14:02

The reason can be up to 512 characters. Bots can add one too, and it shows in the log like any other reason.

The full list: every action the audit log shows

Grouped from the event list in Discord's developer documentation.

AreaActions it records
ServerServer settings updated
ChannelsChannel created, updated, deleted; channel permissions added, changed or removed; channels reordered
MembersKick; prune; ban; unban; member updated (such as nickname or timeout); roles added or removed; moved to another voice channel; disconnected from voice
RolesRole created, edited, deleted; roles reordered
InvitesInvite created, updated, deleted
WebhooksWebhook created, updated, deleted
Emojis and stickersEmoji created, renamed, deleted; sticker created, updated, deleted
SoundboardSound created, updated, deleted
MessagesA message deleted by someone else; several messages deleted at once (bulk); message pinned or unpinned
Apps and botsBot added; app added, updated or removed; command permissions changed
AutoModRule created, updated, deleted; message blocked; message flagged; member timed out by AutoMod; member quarantined by AutoMod
EventsScheduled event created, updated, cancelled
StageStage started, updated, ended
ThreadsThread created, updated, deleted
OnboardingOnboarding created or updated; onboarding questions created, updated or deleted; Server Guide created or updated
VoiceVoice channel status set or removed
MonetizationCreator monetization request created; terms accepted

Some actions are merged. If the same person deletes several messages, moves or disconnects several people, or reorders channels or roles in quick succession, Discord updates one entry with a count instead of adding a new one each time.

What the audit log does NOT show

Not in the audit logWhere to look instead
The content of a deleted messageA logging bot that was in the server before it was deleted
Message edits (before and after)A logging bot
A person deleting their own messageA logging bot. Discord adds no entry when people delete their own messages
Members joining or leavingA logging bot, or the Members page
Which invite someone usedThe Members page, Join Method (requires Manage Server)
DMsNothing. Servers cannot see DMs
Who joined or left a voice channelA logging bot
ReactionsA logging bot
Anything older than 45 daysNothing, unless a bot copied it earlier

A Message Delete entry shows who deleted the message, the member whose message it was, the channel, and a count, because several deletes in a row are merged into one entry. It does not say what the message said.

How to open and filter the audit log

  1. Open the server menu and choose Server Settings.
  2. Choose Audit Log.
  3. Filter by a member to see everything they did, or by an action, such as a ban or a deleted channel.
  4. Open an entry to see the details, such as the old and new name or the reason.

You need View Audit Log. Give it to moderators you trust, because the log also shows who moderated whom.

What a bot's actions look like

When a bot bans, kicks or times someone out, the log shows the bot as the one who did it. The moderator who used the command is not shown as the actor. A good moderation bot puts that information in the reason or in its own log. BetterAntispam saves every moderation command as a numbered case with the moderator and reason, which you can see with /case view (requires Timeout Members).

How to see what the audit log misses

A logging bot records what happens in the server into a channel that only staff can see. It can only log what happens after it is set up, so add it before you need it.

With BetterAntispam:

  1. Add BetterAntispam.
  2. Run /logging settings (requires Manage Server) and choose a log channel. Nothing is posted until you choose one.
  3. Keep the categories you want. Most are on by default; leaves and reactions are off.
EventWhat BetterAntispam logs
Deleted messageAuthor, channel and the text (first 1,000 characters). Deleted attachments are kept for 30 days
Edited messageThe text before and after, with a link to the message
Member joinedAccount age and member count
Member leftOff by default, turn on in /logging settings
Voice, roles, channels, invites created, emojis, threadsLogged by category
ModerationEach action as a case, with moderator and reason

When someone deletes one of the bot's own log messages, BetterAntispam checks the audit log, reposts the log and names who deleted it. Logging is free. More on setting up a log channel: Discord mod logs.

How long does the audit log keep entries?

45 days. Discord's documentation says all audit log entries are stored for 45 days. After that they are gone. If you need a longer record, a bot has to copy the events into a channel or its own records while they happen.

Using the audit log after a hack or a nuke

If channels or roles disappear, the audit log is the fastest way to see which account did it. Filter by Channel Delete, Role Delete or Member Ban Add, note the account, and remove its roles first. Then follow Discord server hacked? What to do right now.

FAQ

Does the Discord audit log show deleted messages?

It shows that a message was deleted by someone else: who deleted it, the member whose message it was, the channel and a count. It does not show the message content, and it does not record people deleting their own messages.

Does the audit log show message edits?

No. Edits are not part of the audit log. A logging bot can record the text before and after.

Can regular members see the audit log?

No. Only the server owner and members with the View Audit Log permission or Administrator can open it.

Does the audit log show who joined the server?

No. Joins and leaves are not in the audit log. The Members page shows when someone joined and which invite they used.

How far back does the Discord audit log go?

45 days.

Can you delete or edit audit log entries?

No. There is no option to edit or delete them. They expire after 45 days.

Does the audit log show timeouts?

Yes. A timeout appears as a member update, and AutoMod timeouts have their own entry.

Core is free · Setup in Discord

Ready to protect your server?

Invite BetterAntispam. Core antiraid, antispam, and antinuke are free. Configuration is slash commands inside Discord.

BetterAntispam on Nick LaunchesFeatured on ToolFameFeatured on Startup FameVerified on DANG!ToolpilotFeatured on SaaSGrowFeatured on ShowMeBestAIFazierSubmit AI ToolsFeatured on Twelve ToolsFeatured on Wired BusinessFeatured on Findly.toolsListed on Turbo0Featured on SaaSFameFeatured on neeed.directoryFeatured on Dofollow.ToolsGood AI ToolsAI Agents DirectoryAura++SideProjectorsFoundrListShinyLaunchStartup FastNextGen ToolsFind-Us-HereDeepLaunchAcid ToolsStartupBaseNewToolUFindWhatsYourHoursOpenHuntsMarketingDBStartup InspireStarter BestFeatured on aitoolfame.comFeatured on IndieHuntShinyLaunchLaunched on LaunchPandaFeatured on WhatsthebigdataFeatured on Yo.directoryAs seen on Launch Llama Newsletterbetterantispam.com Domain RatingVerified DR - Verified Domain Rating for betterantispam.comFeatured on ToolfioBetterAntispam | Firsto LaunchFeatured on DailyPingsFeatured on DanielLaunchesFeatured on ShipBoostFeatured on AgentWork.ToolsFeatured on SaaSCityFeatured on WayfindioFeatured on DodoDirectoryFeatured on TinyLaunchpadFeatured on ListMySaaSVerified on directreeFeatured on Submit HuntFeatured on VibeCodingListFeatured on NoonlaunchFeatured on LaunchItListed on MaidensailVerified on Endors — BetterAntispamMarked on IndieAscentListed on CurlShipListed on PublishYourSaaS