We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
string
The text that is being manipulated.
const message = new TextFilter({text: "hello, world!"})
boolean
Controls how The text is updated, textoverride is false by default
textoverride
const message = new TextFilter({textoveride: true})
change the blacklist censor symbol to whatever you like,
const message = new TextFilter({censorWith: "%"})
string[]
Allow you to set a custom blacklist
const message = new TextFilter({ customBlacklist: ["foo", "boo"] })
censor
message.censor("boo to you") // results "%%%% to you"