mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Fix docs for blocked patterns setting
This commit is contained in:
1 parent
13e944232b
commit
4f04eba177
2 files changed
+2
-2
No files matched your search
@@ -139,7 +139,7 @@ public final class ModerationSettings {
|
|||||||
|
|
||||||
@Setting
|
@Setting
|
||||||
@Comment("Anything in blocked-words will prevent the message from being sent at all.\n" +
|
@Comment("Anything in blocked-words will prevent the message from being sent at all.\n" +
|
||||||
"Set to blocked-words: [] if you want to disable the blocked words feature.")
|
"Set to blocked-patterns: [] if you want to disable the blocked words feature.")
|
||||||
private List<Pattern> blockedPatterns = Collections.singletonList(Pattern.compile("pineapple doesn't belong on pizza"));
|
private List<Pattern> blockedPatterns = Collections.singletonList(Pattern.compile("pineapple doesn't belong on pizza"));
|
||||||
|
|
||||||
public boolean enabled() {
|
public boolean enabled() {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ clear-chat:
|
|||||||
|
|
||||||
filters:
|
filters:
|
||||||
# Anything in blocked-words will prevent the message from being sent at all.
|
# Anything in blocked-words will prevent the message from being sent at all.
|
||||||
# Set to blocked-words: [] if you want to disable the blocked words feature.
|
# Set to blocked-patterns: [] if you want to disable the blocked words feature.
|
||||||
blocked-patterns:
|
blocked-patterns:
|
||||||
- pineapple doesn't belong on pizza
|
- pineapple doesn't belong on pizza
|
||||||
# If filtering / replacements is enabled
|
# If filtering / replacements is enabled
|
||||||
|
|||||||
Reference in new issue
Block a user