Starts when · Starts a flow
When the audit log gets an entry
Someone bans, kicks, deletes a channel or role, makes a webhook, or does anything else the audit log records. The bot needs the View Audit Log permission.
events.audit_entry
In a flow
“When the audit log gets an entry, the steps wired after it run.”
Count each moderator's bans with Count a staff action, and strip their roles past 3 in 10 minutes.
What it does
Someone bans, kicks, deletes a channel or role, makes a webhook, or does anything else the audit log records. The bot needs the View Audit Log permission. It starts a flow, and gives the steps after it values about what happened. It gives 7 values later steps can use. Find it under Starts when in the palette.
When to use it
Use it to start a flow when the audit log gets an entry.
When not to
If the flow should start from a click or a command instead, pick that trigger: a flow has exactly one.
Typical wiring
Values it gives
- Who did it Member
-
The member who did it. Empty when Discord doesn't say. e.g. @Sam
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toA member's variablesAdd a labelAdd a staff noteAdd answer to formAdd to a counterAdd to a leaderboardAdd to threadAdd to ticketand 648 more
- Where Channel
-
The channel it was about, for channel, message and webhook actions. Empty for the rest. e.g. #general
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd to threadAge-restrict a channelAI summary of a channelAnti-nuke guardArchive channelArchive or lock threadAsk a questionand 640 more
- Action Text
-
What they did, in Discord's words: ban, kick, channel_delete, role_delete, webhook_create, member_role_update and so on. e.g. ban
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- About Text
-
The id of who or what it was done to. e.g. 123456789012345678
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- About (name) Text
-
The name of who or what it was done to, when the bot knows it. e.g. Sam
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- Reason Text
-
The reason they gave, empty for none. e.g. spam
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- Destructive Yes / no
-
True for what anti-nuke counts: bans, kicks, prunes, deletes of channels, roles, emojis, webhooks and events, new webhooks, bots added, role and server changes. e.g. true
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more