List of log names

On this page all the available logs are listed

Logs, categorized by what they do, are listed here and are case sensitive. Individual logs are written in UPPER_CASE, while category names (which can be used in place of individual log names, see configuring channels) are Capitalized. Each one of them is separated by categories in the lists below. To log all events, use an asterisk (*). All logs require the bot to have permission to view and send messages, embed links and attach files in the respective channels. Some logs require the bot to have the "View Audit Log" permission enabled at server level.

Moderation

This category is to log actions taken by moderators. Most of them are triggered by using bot commands, but those starting with AUDIT_ will read the data from Discord's audit log providing MoonlightBot has permission to do so.

Name
Emitted when

BAN

INFRACTION_DELETE

KICK

MUTE

A user gets muted

PAUSE_ROLE_ADD

PAUSE_ROLE_EXTEND

A role's length of time to be removed gets adjusted

PAUSE_ROLE_REMOVE

A role gets added back

REASON_UPDATE

ROLE_ADD

A role gets added

ROLE_REMOVE

A role gets removed

SELFROLE_ADD

A user adds a self-assignable role to themselves

SELFROLE_REMOVE

A user removes a self-assignable role from themselves

SOFTBAN

A user gets soft-banned

TEMPBAN_EXTEND

A temporary ban gets extended

TEMPBAN_REMOVE

A temporary ban gets removed

TEMPMUTE_EXTEND

A temporary mute gets extended

TEMPMUTE_REMOVE

A temporary ban gets removed

TEMPROLE_ADD

A temporary role gets added

TEMPROLE_EXTEND

The length of a temporary role gets extended

TEMPROLE_REMOVE

A temporary role gets removed

TIMEOUT

A user gets timed out

TIMEOUT_REMOVE

A time out gets removed

UNBAN

A user gets unbanned

UNMUTE

A user gets unmuted

WARNING

Members

This category is for actions relating to members interacting with the server.

Name
Emitted when

USER_JOIN

Someone joins

USER_LEFT

Someone leaves

Messages

This category is for things having to do with messages.

Name
Emitted when

CHANNEL_CLEAN

Messages get cleaned from a channel. Includes a file with a backup of the deleted messages

MESSAGE_BULK_DELETE

A moderator bulk deletes a set of messages

MESSAGE_DELETE

A message is deleted

MESSAGE_EDIT

A message gets edited

MESSAGE_PIN_ADD

A message gets pinned

MESSAGE_PIN_REMOVE

A message gets unpinned

Debug

This category is for debugging purposes. Logs in this category are meant to aid in fixing errors that may prevent the bot from functioning correctly.

Name
Emitted when

REACTION_ROLE_DEBUG

An error occurs in the process of triggering a reaction role

Last updated