MoonlightBot Documentation
  • MoonlightBot Documentation
  • Get Started
    • Options
    • Frequently Asked Questions
    • Permission Tutorial
    • Moderation Tutorial
    • Setting up Reaction Roles
  • Support Our Work
    • Volunteer Opportunities
    • Premium Subscriptions
    • Upvote MoonlightBot
    • Support Server
    • MoonlightBot Beta (early access)
    • Special Thanks
  • Policies
    • Acceptable Use Policy
    • Volunteer Code of Conduct
    • Privacy Policy
  • Management Commands
    • config
    • create-muterole
    • reaction-roles
  • Miscellaneous Commands
    • check-duration
    • premium
    • userconfig
    • Other Minor Commands
  • Moderation Commands
    • ban
    • clean
    • infractions
    • kick
    • mute
    • softban
    • tempban
    • tempmute
    • timeout
    • unban
    • unmute
    • warn
  • Role management Commands
    • list-temproles
    • pause-role
    • role
    • selfrole
    • temprole
  • Utility Commands
    • reminder
    • serverinfo
    • snowflake
    • userinfo
  • Advanced
    • Using developer mode
    • List of log names
Powered by GitBook
On this page
  • Moderation
  • Members
  • Messages
  • Debug
  1. Advanced

List of log names

On this page all the available logs are listed

PreviousUsing developer mode

Last updated 6 months ago

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 ) 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

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

ROLE_REMOVE

A role gets removed

SELFROLE_ADD

SELFROLE_REMOVE

A user removes a self-assignable role from themselves

SOFTBAN

TEMPBAN_EXTEND

TEMPBAN_REMOVE

A temporary ban gets removed

TEMPMUTE_EXTEND

TEMPMUTE_REMOVE

A temporary ban gets removed

TEMPROLE_ADD

TEMPROLE_EXTEND

The length of a temporary role gets extended

TEMPROLE_REMOVE

A temporary role gets removed

TIMEOUT

TIMEOUT_REMOVE

A time out gets removed

UNBAN

UNMUTE

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

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

A user

A moderator

A user

A user

A role

A gets updated

A gets added

A user adds a to themselves

A user gets

A gets extended

A gets extended

A gets added

A user gets

A user gets

A user gets

A user

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

An error occurs in the process of triggering a

gets banned
deletes an infraction
gets kicked
gets muted
gets temporarily removed
role
self-assignable role
soft-banned
temporary ban
temporary mute
temporary role
timed out
unbanned
unmuted
receives a warning
cleaned
reaction role
configuring channels
reason for an infraction