Infractions are records of moderation actions such as mutes or warnings. This tool has various subcommands to assist moderators keep track of bad conduct and make informed decisions.
MoonlightBot requires the following permissions to successfully execute this command:
No specific permissions required
By default, a user is required to have the following permissions to use this command:
- Moderate Members
For more information on editing permission requirements for specific users/roles, refer to the permissions tutorial
Shows the three most recent infractions of a user, along with counts of each different infraction type. If a tempban/mute is active, it will show that as well
/infractions summary <user>
user
: The user you want to see the infractions summary of
MoonlightBot requires the following permissions to successfully execute this subcommand:
No specific permissions required
Shows the type of infraction, the user the command targeted, who executed the infraction, the reason for the infraction, and the date it was executed
/infractions detailed <id>
id
: The ID of the infraction you want to view
MoonlightBot requires the following permissions to successfully execute this subcommand:
No specific permissions required
Changes the reason of the infraction. If the reason
option is left blank, it will simply display the current one. You can alternatively use %%%
to automatically copy the old content so you don't have to type it again
/infractions reason <id> [reason]
id
: The ID of the infraction you want to editreason
: What you want to change the reason to
MoonlightBot requires the following permissions to successfully execute this subcommand:
No specific permissions required
Shows a list of infractions that fit all the specified criteria, such as the moderator who executed them
/infractions search [target] [moderator] [type] [before] [after]
target
: The user you want to see the infractions ofmoderator
: The infractions executed by a specific moderatortype
: The type of the infractions you want to viewbefore
: View infractions executed before this durationafter
: View infractions after this duration
MoonlightBot requires the following permissions to successfully execute this subcommand:
No specific permissions required
Deletes an infraction
{% hint style="danger" %} This cannot be undone! Be absolutely sure that you want to delete the infraction before running this command. {% endhint %}
/infractions delete <id> [reason]
id
: The ID of the infraction you want to deletereason
: The reason you are deleting the infraction
MoonlightBot requires the following permissions to successfully execute this subcommand:
No specific permissions required
REASON_UPDATE
: Shows the user the infraction affects, the moderator who executed it, and the updated reasonINFRACTION_DELETE
: Same as above, with the reason being why the infraction was deleted
For more information on setting up those logs, refer to the log setup tutorial