How do I ban words on my server (word filter)?
The word filter deletes messages that contain a word or phrase from your blocklist. It is managed with the /wordfilter command in Discord.
Who can use it?
The command requires the Discord permission Manage Messages.
Add a word
- In a channel, type
/wordfilterDiscord offers the subcommandsadd,remove,listandtoggle. - Choose
add - In the
motfield, type the word or phrase Up to 100 characters. It is saved in lowercase. - Confirm with Enter The bot answers “Word added”. The filter is then turned on.
Remove a word
Type /wordfilter remove and the word to remove.
See the list
/wordfilter list shows all the words (hidden behind a spoiler so as not to display them) and whether the filter is active.
Turn the filter on or off without erasing the list
/wordfilter toggle with activer set to yes or no. The list is kept.
Choose what happens to the member
The sanction is set on the Banned words line (“Abuse” family) of the “Automatic sanctions” card on the AutoMod page. Default: warning. See How do the automatic sanctions work?
Think about exceptions
A staff-only channel, or moderators who must be able to quote a banned word: add them to the exemptions.
Still stuck?
Contact support with the title of this article, the step where you are stuck and what you see on screen.
Contact support More articles: ProtectionLast checked: 13 November 2026.