Message Filters

DCE supports a powerful filtering syntax to include or exclude specific messages during export. You can use this in the GUI settings or via the --filter CLI option.

Syntax Reference

Filter Description
text Matches messages containing "text".
"phrase" Matches exact phrase.
from:User Messages from a specific user (username or ID).
mentions:User Messages mentioning a user.
has:image Messages with image attachments or embeds.
has:video Messages with video attachments.
has:file Messages with any file attachment.
has:link Messages containing links.
has:embed Messages containing embeds.
has:pin Pinned messages.
reaction:emoji Messages with a specific reaction.

Logical Operators

  • AND: Implicit (space) or &. Example: from:Tyrrrz has:image
  • OR: |. Example: has:image | has:video
  • NOT: - or ~. Example: -has:link

Examples

Get all images from a specific user:

from:Tyrrrz has:image

Get messages that mention you but contain no links:

mentions:MyUser -has:link

Complex query:

(from:Admin | from:Mod) (has:link | has:file)