Profanity filter
The profanity filter is designed to detect and filter out profanity words or regular expressions
HTTP request
Parameters
The following table lists a parameter that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
custom_type | string | Specifies the custom channel type to apply a set of settings to a channel. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Optional | Type | Description |
---|---|---|
profanity_filter | nested object | Specifies a profanity filter configuration to filter out certain words and patterns that match the character combinations specified in |
profanity_filter.keywords[] | array of strings | Specifies an array of words to detect. A keyword that starts with an asterisk filters all words that end with the keyword including the keyword itself. A keyword that ends with an asterisk filters all words that start with the keyword including the keyword itself. |
profanity_filter.regex_filters[] | array of objects | Specifies an array of regular expressions to detect. Each item in the array should be specified in |
profanity_filter.type | int | Determines which filtering method to apply to messages and nicknames that contain the specified keywords or regular expressions. Acceptable values are the following: |
profanity_filter.should_check_global | boolean | Determines whether to apply the profanity filter of the application settings in addition to |
If you want to turn off the profanity filter, send a PUT
request with a blank keywords
property and regex_filters
property as shown below:
Response
If successful, this action returns the updated moderation settings or channels with a custom channel type in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.