One or more of the following search terms may be combined to search the moderation logs.
- IMPORTANT on large databases, certain queries may take minutes to complete.
Search term | Description |
---|---|
action:ACTION | Search for any text in a moderation ACTION. |
actiontype:ACTIONTYPE | Search for a specific action type verb. Example actiontype:ban will search for Ban actions in the log. |
after:DATE | Search for actions after the specified DATE. See date localization. |
before:DATE | Search for actions earlier than DATE. See date localization. |
color:COLOR | Filter by COLOR: Black , Blue , Green , Grey , Orange , Purple , Red , White . |
during:DATE | Search for actions on the day specified by DATE. See date localization. |
description:DESCRIPTION | Search for DESCRIPTION. |
in:CHANNEL | Search for actions with attached messages in CHANNEL. |
mod:MODERATOR | Search for MODERATOR. MODERATOR may be a numeric Discord ID or a Discord user name. |
note:NOTE | Search for NOTE. If NOTE is blank this will search for any action with a note. |
reason:REASON | Search for REASON. Example reason:spam will search for spam related actions in the log. |
ref:REFERENCE | Search for REFERENCE. See Auto-moderation codes. |
user:USER | Search for USER. USER may be a numeric Discord ID or a Discord user name. |
Partial date matches
Partial date matches will select the smallest matching date. Examples:
- 2020 will match the date January 1, 2020.
- March 2021 will match the date March 1, 2021.
Searching from the profile menu
The search feature on the user profile menu will only search relative to the currently selected Discord user.
Security
Searching moderation logs requires that the Bot user has the ‘View moderation logs’ authority.