One or more of the following search terms may be combined to search for specific messages.
- IMPORTANT on large databases, certain queries may take minutes to complete.
| Search term | Description |
|---|---|
| text:TEXT | Search for TEXT. This query can be extremely slow on large servers and can timeout without returning any results. |
| from:USER | Search for messages from USER. USER may be a numeric Discord ID or the Discord user name. |
| before:DATE | Search for messages posted earlier than DATE. See date localization. |
| during:DATE | Search for messages posted on the day specified by DATE. See date localization. |
| after:DATE | Search for messages posted after the specified DATE. See date localization. |
| has:MEDIA | Search for messages with the corresponding media type, where MEDIA is link, embed, or file. |
| in:CHANNEL | Search for messages in CHANNEL. |
| deletedby:WHO | Search for deleted messages, where WHO is self, mod, bot, or all. |
| messageid:MESSAGEID | Search for the message identified by MESSAGEID. |
| and: | AND the search terms together. This is the default. Example: after:Jan 1, 2020 and: before: Mar 31, 2020 |
| or: | OR the search terms together. Example: from:alice or: from:bob |
| order:reverse | Sort results in reverse order. |
Partial date matches
Partial date matches will select the smallest matching date. Examples:
Security
Searching messages requires that the Bot user has the ‘View message logs’ authority.