Moderation & security

Message filters

Catch unwanted messages and escalate repeated violations.

Illustrated example · Try ,help filter set in Discord.

How to use it

Select a filter type and threshold for your channel. Add exemptions for roles that need them, then configure the points needed for each escalation.

Reference

Filter types

Use the built-in filters for caps, links, emoji, spoilers, music files, mass mentions, invites and spam. Configure custom words or patterns for rules specific to your server. Filter strikes add points and can trigger escalating actions.

Commands

,filter

View all filters

Aliases · automod, f

Permissions · Manage Channels

,filter clear [type] [channel]

Reset a filter (or all filters)

Permissions · Manage Channels

,filter exempt

Roles that bypass filters

Permissions · Manage Channels

,filter exempt add <type|word|all> <role>

Exempt a role from a filter

Permissions · Manage Channels

,filter exempt list

List filter exemptions

Permissions · Manage Channels

,filter exempt remove <type|word|all> <role>

Remove a filter exemption

Permissions · Manage Channels

,filter names <on|off>

Clean up hoisted and fancy-text names automatically

Permissions · Manage Nicknames

,filter names cleanup

Clean every existing member's name now

Permissions · Manage Nicknames

,filter points

Escalating punishments from filter points

Permissions · Manage Channels

,filter points clear <member> [amount]

Remove some or all of a member's points

Permissions · Manage Messages

,filter points expiry <hours|0>

Reset points after this many hours without a trigger (0 = never)

Permissions · Manage Server

,filter points limit <5-100>

Set the maximum points a member can hold

Permissions · Manage Server

,filter points member <member>

See a member's points

Permissions · Manage Messages

,filter points step <points> <punishment> [duration]

Add/replace an escalation step (e.g. step 10 jail 1d)

Permissions · Manage Server

,filter points toggle <on|off>

Enable or disable filter points

Permissions · Manage Server

,filter points unstep <points>

Remove an escalation step

Permissions · Manage Server

,filter points view

View the points configuration

Permissions · Manage Channels

,filter set <type> <on|off> [threshold] [punishment] [duration] [channel]

Configure a filter: caps, links, emoji, spoilers, musicfiles, massmention, invites, spam

Aliases · setup

Permissions · Manage Channels

,filter snipe <invites|links|images|word|files|music> <on|off>

Hide filtered content from snipe

Permissions · Manage Channels

,filter url

Allowed sites for the links filter

Aliases · links

Permissions · Manage Channels

,filter url allow <site>

Allow a site (e.g. youtube.com)

Permissions · Manage Channels

,filter url disallow <site>

Remove an allowed site

Permissions · Manage Channels

,filter url list

List allowed sites

Permissions · Manage Channels

,filter window <seconds>

Set the spam filter window

Permissions · Manage Channels

,filter word

Blocked words

Aliases · words

Permissions · Manage Channels

,filter word add <word>

Block a word or phrase (60 chars max)

Permissions · Manage Server, Manage Channels

,filter word allow <word>

Always allow a word even if it matches

Permissions · Manage Channels

,filter word list

List blocked words

Permissions · Manage Channels

,filter word migrate

Copy blocked words into Discord's native AutoMod

Permissions · Manage Server

,filter word punishment <punishment> [duration]

Set the punishment for the word filter

Permissions · Manage Server

,filter word regex <pattern>

Add or remove (toggle) a regex filter (260 chars max)

Permissions · Manage Server

,filter word remove <word>

Unblock a word

Permissions · Manage Server, Manage Channels

,filter word reset

Clear every blocked word and regex

Permissions · Manage Server

,filter word unallow <word>

Remove an allowed word

Permissions · Manage Channels

/filter view

View all filters

/filter snipe <kind> <setting>

Hide filtered content from snipe

/filter points step <points> <punishment> [duration]

Add/replace an escalation step (e.g. step 10 jail 1d)

/filter points view

View the points configuration

/filter points clear <member> [amount]

Remove some or all of a member's points

/filter points unstep <points>

Remove an escalation step

/filter points limit <points>

Set the maximum points a member can hold

/filter points toggle <setting>

Enable or disable filter points

/filter points expiry <hours>

Reset points after this many hours without a trigger (0 = never)

/filter points member <member>

See a member's points

/filter word view

Blocked words

/filter word regex <pattern>

Add or remove (toggle) a regex filter (260 chars max)

/filter word list

List blocked words

/filter word punishment <punishment> [duration]

Set the punishment for the word filter

/filter word reset

Clear every blocked word and regex

/filter word allow <word>

Always allow a word even if it matches

/filter word unallow <word>

Remove an allowed word

/filter word migrate

Copy blocked words into Discord's native AutoMod

/filter word remove <word>

Unblock a word

/filter word add <word>

Block a word or phrase (60 chars max)

/filter set <kind> <setting> [threshold] [punishment] [duration] [channel]

Configure a filter: caps, links, emoji, spoilers, musicfiles, massmention, invites, spam

/filter clear [kind] [channel]

Reset a filter (or all filters)

/filter names set <setting>

Clean up hoisted and fancy-text names automatically

/filter names cleanup

Clean every existing member's name now

/filter window <seconds>

Set the spam filter window

/filter url view

Allowed sites for the links filter

/filter url list

List allowed sites

/filter url disallow <site>

Remove an allowed site

/filter url allow <site>

Allow a site (e.g. youtube.com)

/filter exempt view

Roles that bypass filters

/filter exempt remove <kind> <role>

Remove a filter exemption

/filter exempt add <kind> <role>

Exempt a role from a filter

/filter exempt list

List filter exemptions