The Censor module (censor) allows you to keep your server clean from unwanted words, block unauthorized external links, and protect your users from phishing links.
Option
Description
maxLvl
Maximum authorization level to which the filters will be applied.
md
true to send direct messages to offenders.
ignoredRoles
IDs of roles exempt from censorship.
ignoredChannels
IDs of channels where censorship will not act.
Links (Anti-Links)
antiLinksEnabled: Enables/Disables the filter.
antiLinksWhitelist: Allowed domains (e.g. ['youtube.com']).
antiLinksOnlyDelete: true to delete silently, false to alert in a channel.
antiLinksChannelId: Alerts channel (if antiLinksOnlyDelete is false).
Words (Word Blacklist)
wordBlacklist: List of blocked words (separated by commas).
Tokens (Token Blacklist)
tokenBlacklist: Blocked fragments or links (e.g. ['discord.gg/']).
Phishing
antiPhishingEnabled: Enables the intelligent database of malicious links.
Configuration example
ignoredRoles : [ ' 111111111111111111 ' ]
ignoredChannels : [ ' 222222222222222222 ' ]
antiPhishingEnabled : true
antiLinksWhitelist : [ ' youtube.com ' , ' tenor.com ' ]
antiLinksOnlyDelete : true
wordBlacklist : [ ' badword1 ' , ' insult2 ' ]
tokenBlacklist : [ ' discord.gg/ ' ]