1 |
{ |
2 |
"type": "object", |
3 |
"additionalProperties": { |
4 |
"anyOf": [ |
5 |
{ |
6 |
"type": "object", |
7 |
"properties": { |
8 |
"prefix": { |
9 |
"type": "string", |
10 |
"default": "-" |
11 |
}, |
12 |
"commands": { |
13 |
"type": "object", |
14 |
"properties": { |
15 |
"mention_prefix": { |
16 |
"type": "boolean", |
17 |
"default": true |
18 |
} |
19 |
}, |
20 |
"additionalProperties": false, |
21 |
"default": {} |
22 |
}, |
23 |
"permissions": { |
24 |
"type": "object", |
25 |
"properties": { |
26 |
"mod_role": {}, |
27 |
"admin_role": { |
28 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
29 |
}, |
30 |
"staff_role": { |
31 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
32 |
}, |
33 |
"mode": { |
34 |
"type": "string", |
35 |
"enum": [ |
36 |
"discord", |
37 |
"levels", |
38 |
"advanced" |
39 |
], |
40 |
"default": "discord" |
41 |
} |
42 |
}, |
43 |
"additionalProperties": false, |
44 |
"default": {} |
45 |
}, |
46 |
"infractions": { |
47 |
"type": "object", |
48 |
"properties": { |
49 |
"send_ids_to_user": { |
50 |
"type": "boolean", |
51 |
"default": true |
52 |
}, |
53 |
"dm_fallback": { |
54 |
"type": "string", |
55 |
"enum": [ |
56 |
"none", |
57 |
"create_channel", |
58 |
"create_thread" |
59 |
], |
60 |
"default": "none" |
61 |
}, |
62 |
"dm_fallback_parent_channel": { |
63 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
64 |
}, |
65 |
"dm_fallback_channel_expires_in": { |
66 |
"type": "integer", |
67 |
"default": 604800000 |
68 |
} |
69 |
}, |
70 |
"additionalProperties": false |
71 |
}, |
72 |
"muting": { |
73 |
"type": "object", |
74 |
"properties": { |
75 |
"role": { |
76 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
77 |
} |
78 |
}, |
79 |
"additionalProperties": false |
80 |
}, |
81 |
"quickmute": { |
82 |
"type": "object", |
83 |
"properties": { |
84 |
"enabled": { |
85 |
"type": "boolean", |
86 |
"default": false |
87 |
}, |
88 |
"clear_emoji": { |
89 |
"type": "string" |
90 |
}, |
91 |
"noclear_emoji": { |
92 |
"type": "string" |
93 |
}, |
94 |
"duration": { |
95 |
"type": "integer", |
96 |
"minimum": 0, |
97 |
"default": 7200000 |
98 |
}, |
99 |
"reason": { |
100 |
"type": "string" |
101 |
} |
102 |
}, |
103 |
"additionalProperties": false |
104 |
}, |
105 |
"logging": { |
106 |
"type": "object", |
107 |
"properties": { |
108 |
"enabled": { |
109 |
"type": "boolean", |
110 |
"default": false |
111 |
}, |
112 |
"bulk_delete_send_json": { |
113 |
"type": "boolean", |
114 |
"default": true |
115 |
}, |
116 |
"primary_channel": { |
117 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
118 |
}, |
119 |
"message_logging_channel": { |
120 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
121 |
}, |
122 |
"join_leave_channel": { |
123 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
124 |
}, |
125 |
"saved_messages_channel": { |
126 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
127 |
}, |
128 |
"events": { |
129 |
"type": "object", |
130 |
"properties": { |
131 |
"message_edit": { |
132 |
"type": "boolean", |
133 |
"default": true |
134 |
}, |
135 |
"message_delete": { |
136 |
"type": "boolean", |
137 |
"default": true |
138 |
}, |
139 |
"member_join": { |
140 |
"type": "boolean", |
141 |
"default": true |
142 |
}, |
143 |
"member_leave": { |
144 |
"type": "boolean", |
145 |
"default": true |
146 |
}, |
147 |
"message_bulk_delete": { |
148 |
"type": "boolean", |
149 |
"default": true |
150 |
} |
151 |
}, |
152 |
"additionalProperties": false, |
153 |
"default": { |
154 |
"message_edit": true, |
155 |
"member_leave": true, |
156 |
"member_join": true, |
157 |
"message_delete": true |
158 |
} |
159 |
} |
160 |
}, |
161 |
"additionalProperties": false |
162 |
}, |
163 |
"message_reporting": { |
164 |
"type": "object", |
165 |
"properties": { |
166 |
"enabled": { |
167 |
"type": "boolean", |
168 |
"default": false |
169 |
}, |
170 |
"channel": { |
171 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
172 |
}, |
173 |
"users": { |
174 |
"type": "array", |
175 |
"items": { |
176 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
177 |
}, |
178 |
"default": [] |
179 |
}, |
180 |
"roles": { |
181 |
"type": "array", |
182 |
"items": { |
183 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
184 |
}, |
185 |
"default": [] |
186 |
}, |
187 |
"permissions": { |
188 |
"type": "array", |
189 |
"items": { |
190 |
"type": "string" |
191 |
}, |
192 |
"default": [] |
193 |
}, |
194 |
"permissionLevel": { |
195 |
"type": "integer", |
196 |
"minimum": -1, |
197 |
"maximum": 100, |
198 |
"default": -1 |
199 |
} |
200 |
}, |
201 |
"additionalProperties": false |
202 |
}, |
203 |
"invite_tracking": { |
204 |
"type": "object", |
205 |
"properties": { |
206 |
"enabled": { |
207 |
"type": "boolean", |
208 |
"default": false |
209 |
} |
210 |
}, |
211 |
"additionalProperties": false |
212 |
}, |
213 |
"message_filter": { |
214 |
"type": "object", |
215 |
"properties": { |
216 |
"enabled": { |
217 |
"type": "boolean", |
218 |
"default": false |
219 |
}, |
220 |
"send_logs": { |
221 |
"anyOf": [ |
222 |
{ |
223 |
"type": "boolean" |
224 |
}, |
225 |
{ |
226 |
"type": "object", |
227 |
"properties": { |
228 |
"blocked_words": { |
229 |
"type": "boolean", |
230 |
"default": false |
231 |
}, |
232 |
"blocked_tokens": { |
233 |
"type": "boolean", |
234 |
"default": false |
235 |
} |
236 |
}, |
237 |
"additionalProperties": false |
238 |
} |
239 |
], |
240 |
"default": false |
241 |
}, |
242 |
"delete_message": { |
243 |
"anyOf": [ |
244 |
{ |
245 |
"type": "boolean" |
246 |
}, |
247 |
{ |
248 |
"type": "object", |
249 |
"properties": { |
250 |
"blocked_words": { |
251 |
"type": "boolean", |
252 |
"default": false |
253 |
}, |
254 |
"blocked_tokens": { |
255 |
"type": "boolean", |
256 |
"default": false |
257 |
} |
258 |
}, |
259 |
"additionalProperties": false |
260 |
} |
261 |
], |
262 |
"default": false |
263 |
}, |
264 |
"data": { |
265 |
"type": "object", |
266 |
"properties": { |
267 |
"blocked_words": { |
268 |
"type": "array", |
269 |
"items": { |
270 |
"type": "string" |
271 |
}, |
272 |
"default": [] |
273 |
}, |
274 |
"blocked_tokens": { |
275 |
"type": "array", |
276 |
"items": { |
277 |
"type": "string" |
278 |
}, |
279 |
"default": [] |
280 |
} |
281 |
}, |
282 |
"additionalProperties": false |
283 |
} |
284 |
}, |
285 |
"additionalProperties": false |
286 |
}, |
287 |
"antispam": { |
288 |
"type": "object", |
289 |
"properties": { |
290 |
"enabled": { |
291 |
"type": "boolean", |
292 |
"default": false |
293 |
}, |
294 |
"limit": { |
295 |
"type": "integer", |
296 |
"default": -1 |
297 |
}, |
298 |
"timeframe": { |
299 |
"type": "integer", |
300 |
"default": -1 |
301 |
}, |
302 |
"mute_duration": { |
303 |
"type": "integer", |
304 |
"default": -1 |
305 |
}, |
306 |
"action": { |
307 |
"type": "string", |
308 |
"enum": [ |
309 |
"verbal_warn", |
310 |
"warn", |
311 |
"mute", |
312 |
"mute_clear", |
313 |
"auto" |
314 |
] |
315 |
} |
316 |
}, |
317 |
"additionalProperties": false |
318 |
}, |
319 |
"antiraid": { |
320 |
"type": "object", |
321 |
"properties": { |
322 |
"enabled": { |
323 |
"type": "boolean", |
324 |
"default": false |
325 |
}, |
326 |
"max_joins": { |
327 |
"type": "integer", |
328 |
"default": -1 |
329 |
}, |
330 |
"timeframe": { |
331 |
"type": "integer", |
332 |
"default": -1 |
333 |
}, |
334 |
"action": { |
335 |
"type": "string", |
336 |
"enum": [ |
337 |
"auto", |
338 |
"lock", |
339 |
"antijoin", |
340 |
"lock_and_antijoin", |
341 |
"none" |
342 |
] |
343 |
}, |
344 |
"send_log": { |
345 |
"type": "boolean", |
346 |
"default": true |
347 |
}, |
348 |
"channels": { |
349 |
"type": "array", |
350 |
"items": { |
351 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
352 |
}, |
353 |
"default": [] |
354 |
}, |
355 |
"channel_mode": { |
356 |
"type": "string", |
357 |
"enum": [ |
358 |
"exclude", |
359 |
"include" |
360 |
], |
361 |
"default": "exclude" |
362 |
}, |
363 |
"ignore_private_channels": { |
364 |
"type": "boolean", |
365 |
"default": true |
366 |
} |
367 |
}, |
368 |
"additionalProperties": false |
369 |
}, |
370 |
"welcomer": { |
371 |
"type": "object", |
372 |
"properties": { |
373 |
"enabled": { |
374 |
"type": "boolean", |
375 |
"default": false |
376 |
}, |
377 |
"custom_message": { |
378 |
"type": "string" |
379 |
}, |
380 |
"randomize": { |
381 |
"type": "boolean", |
382 |
"default": false |
383 |
}, |
384 |
"mention": { |
385 |
"type": "boolean", |
386 |
"default": false |
387 |
}, |
388 |
"say_hi_button": { |
389 |
"type": "boolean", |
390 |
"default": false |
391 |
}, |
392 |
"say_hi_emoji": { |
393 |
"type": "string", |
394 |
"default": "default" |
395 |
}, |
396 |
"say_hi_expire_after": { |
397 |
"anyOf": [ |
398 |
{ |
399 |
"type": "integer", |
400 |
"minimum": 5000, |
401 |
"maximum": 600000, |
402 |
"default": 300000 |
403 |
}, |
404 |
{ |
405 |
"type": "null" |
406 |
} |
407 |
] |
408 |
}, |
409 |
"delete_messages": { |
410 |
"anyOf": [ |
411 |
{ |
412 |
"type": "integer", |
413 |
"minimum": 5000, |
414 |
"maximum": 600000 |
415 |
}, |
416 |
{ |
417 |
"type": "null" |
418 |
} |
419 |
], |
420 |
"default": null |
421 |
}, |
422 |
"channel": { |
423 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
424 |
}, |
425 |
"embed": { |
426 |
"type": "boolean", |
427 |
"default": true |
428 |
}, |
429 |
"color": { |
430 |
"anyOf": [ |
431 |
{ |
432 |
"type": "integer", |
433 |
"minimum": 0, |
434 |
"maximum": 16777215, |
435 |
"default": 31743 |
436 |
}, |
437 |
{ |
438 |
"type": "string", |
439 |
"pattern": "^\\#" |
440 |
} |
441 |
] |
442 |
} |
443 |
}, |
444 |
"required": [ |
445 |
"channel" |
446 |
], |
447 |
"additionalProperties": false |
448 |
}, |
449 |
"profile_filter": { |
450 |
"type": "object", |
451 |
"properties": { |
452 |
"enabled": { |
453 |
"type": "boolean", |
454 |
"default": false |
455 |
}, |
456 |
"scan": { |
457 |
"type": "array", |
458 |
"items": { |
459 |
"anyOf": [ |
460 |
{ |
461 |
"type": "string", |
462 |
"enum": [ |
463 |
"status", |
464 |
"nickname" |
465 |
] |
466 |
}, |
467 |
{ |
468 |
"type": "string", |
469 |
"const": "username" |
470 |
} |
471 |
] |
472 |
}, |
473 |
"default": [] |
474 |
}, |
475 |
"actions": { |
476 |
"type": "object", |
477 |
"properties": { |
478 |
"status": { |
479 |
"anyOf": [ |
480 |
{ |
481 |
"type": "string", |
482 |
"enum": [ |
483 |
"mute", |
484 |
"warn" |
485 |
] |
486 |
}, |
487 |
{ |
488 |
"type": "string", |
489 |
"const": "none" |
490 |
} |
491 |
], |
492 |
"default": "none" |
493 |
}, |
494 |
"nickname": { |
495 |
"anyOf": [ |
496 |
{ |
497 |
"type": "string", |
498 |
"enum": [ |
499 |
"mute", |
500 |
"warn" |
501 |
] |
502 |
}, |
503 |
{ |
504 |
"type": "string", |
505 |
"const": "none" |
506 |
} |
507 |
], |
508 |
"default": "none" |
509 |
}, |
510 |
"username": { |
511 |
"anyOf": [ |
512 |
{ |
513 |
"type": "string", |
514 |
"enum": [ |
515 |
"mute", |
516 |
"warn" |
517 |
] |
518 |
}, |
519 |
{ |
520 |
"type": "string", |
521 |
"const": "none" |
522 |
} |
523 |
], |
524 |
"default": "none" |
525 |
} |
526 |
}, |
527 |
"additionalProperties": false, |
528 |
"default": {} |
529 |
}, |
530 |
"inherit_from_message_filter": { |
531 |
"type": "object", |
532 |
"properties": { |
533 |
"tokens": { |
534 |
"type": "boolean", |
535 |
"default": false |
536 |
}, |
537 |
"words": { |
538 |
"type": "boolean", |
539 |
"default": false |
540 |
} |
541 |
}, |
542 |
"additionalProperties": false, |
543 |
"default": {} |
544 |
}, |
545 |
"tokens": { |
546 |
"type": "array", |
547 |
"items": { |
548 |
"type": "string" |
549 |
}, |
550 |
"default": [] |
551 |
}, |
552 |
"words": { |
553 |
"type": "array", |
554 |
"items": { |
555 |
"type": "string" |
556 |
}, |
557 |
"default": [] |
558 |
} |
559 |
}, |
560 |
"additionalProperties": false |
561 |
}, |
562 |
"autorole": { |
563 |
"type": "object", |
564 |
"properties": { |
565 |
"enabled": { |
566 |
"type": "boolean", |
567 |
"default": false |
568 |
}, |
569 |
"roles": { |
570 |
"type": "array", |
571 |
"items": { |
572 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
573 |
}, |
574 |
"default": [] |
575 |
}, |
576 |
"ignore_bots": { |
577 |
"type": "boolean", |
578 |
"default": true |
579 |
} |
580 |
}, |
581 |
"additionalProperties": false |
582 |
}, |
583 |
"reaction_roles": { |
584 |
"type": "object", |
585 |
"properties": { |
586 |
"enabled": { |
587 |
"type": "boolean", |
588 |
"default": false |
589 |
}, |
590 |
"ignore_bots": { |
591 |
"type": "boolean", |
592 |
"default": true |
593 |
} |
594 |
}, |
595 |
"additionalProperties": false |
596 |
}, |
597 |
"create_boost_role": { |
598 |
"type": "object", |
599 |
"properties": { |
600 |
"create_roles_after": { |
601 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
602 |
} |
603 |
}, |
604 |
"additionalProperties": false |
605 |
}, |
606 |
"disabled_commands": { |
607 |
"type": "object", |
608 |
"properties": { |
609 |
"guild": { |
610 |
"type": "array", |
611 |
"items": { |
612 |
"type": "string" |
613 |
}, |
614 |
"default": [] |
615 |
}, |
616 |
"channels": { |
617 |
"type": "object", |
618 |
"additionalProperties": { |
619 |
"type": "array", |
620 |
"items": { |
621 |
"type": "string" |
622 |
}, |
623 |
"default": [] |
624 |
}, |
625 |
"default": {} |
626 |
} |
627 |
}, |
628 |
"additionalProperties": false |
629 |
}, |
630 |
"file_filter": { |
631 |
"type": "object", |
632 |
"properties": { |
633 |
"enabled": { |
634 |
"type": "boolean", |
635 |
"default": false |
636 |
}, |
637 |
"disabled_channels": { |
638 |
"type": "array", |
639 |
"items": { |
640 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
641 |
}, |
642 |
"default": [] |
643 |
}, |
644 |
"blocked_hashes": { |
645 |
"type": "object", |
646 |
"additionalProperties": { |
647 |
"type": [ |
648 |
"string", |
649 |
"null" |
650 |
] |
651 |
}, |
652 |
"default": {} |
653 |
} |
654 |
}, |
655 |
"additionalProperties": false |
656 |
}, |
657 |
"message_rules": { |
658 |
"type": "object", |
659 |
"properties": { |
660 |
"enabled": { |
661 |
"type": "boolean", |
662 |
"default": false |
663 |
}, |
664 |
"rules": { |
665 |
"type": "array", |
666 |
"items": { |
667 |
"anyOf": [ |
668 |
{ |
669 |
"type": "object", |
670 |
"properties": { |
671 |
"disabled_channels": { |
672 |
"type": "array", |
673 |
"items": { |
674 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
675 |
}, |
676 |
"default": [] |
677 |
}, |
678 |
"immune_roles": { |
679 |
"type": "array", |
680 |
"items": { |
681 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
682 |
}, |
683 |
"default": [] |
684 |
}, |
685 |
"immune_users": { |
686 |
"type": "array", |
687 |
"items": { |
688 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
689 |
}, |
690 |
"default": [] |
691 |
}, |
692 |
"actions": { |
693 |
"type": "array", |
694 |
"items": { |
695 |
"type": "string", |
696 |
"enum": [ |
697 |
"delete", |
698 |
"verbal_warn", |
699 |
"warn", |
700 |
"mute", |
701 |
"clear" |
702 |
] |
703 |
}, |
704 |
"default": [] |
705 |
}, |
706 |
"verbal_warning_reason": { |
707 |
"type": "string" |
708 |
}, |
709 |
"warning_reason": { |
710 |
"type": "string" |
711 |
}, |
712 |
"mute_reason": { |
713 |
"type": "string" |
714 |
}, |
715 |
"common_reason": { |
716 |
"type": "string" |
717 |
}, |
718 |
"mute_duration": { |
719 |
"type": "integer", |
720 |
"default": -1 |
721 |
}, |
722 |
"data": { |
723 |
"type": "array", |
724 |
"items": { |
725 |
"type": "string" |
726 |
}, |
727 |
"default": [] |
728 |
}, |
729 |
"type": { |
730 |
"type": "string", |
731 |
"const": "blocked_domain" |
732 |
}, |
733 |
"scan_links_only": { |
734 |
"type": "boolean", |
735 |
"default": false |
736 |
} |
737 |
}, |
738 |
"required": [ |
739 |
"type" |
740 |
], |
741 |
"additionalProperties": false |
742 |
}, |
743 |
{ |
744 |
"type": "object", |
745 |
"properties": { |
746 |
"disabled_channels": { |
747 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
748 |
}, |
749 |
"immune_roles": { |
750 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
751 |
}, |
752 |
"immune_users": { |
753 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
754 |
}, |
755 |
"actions": { |
756 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
757 |
}, |
758 |
"verbal_warning_reason": { |
759 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
760 |
}, |
761 |
"warning_reason": { |
762 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
763 |
}, |
764 |
"mute_reason": { |
765 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
766 |
}, |
767 |
"common_reason": { |
768 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
769 |
}, |
770 |
"mute_duration": { |
771 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
772 |
}, |
773 |
"data": { |
774 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/data" |
775 |
}, |
776 |
"type": { |
777 |
"type": "string", |
778 |
"const": "blocked_mime_type" |
779 |
} |
780 |
}, |
781 |
"required": [ |
782 |
"type" |
783 |
], |
784 |
"additionalProperties": false |
785 |
}, |
786 |
{ |
787 |
"type": "object", |
788 |
"properties": { |
789 |
"disabled_channels": { |
790 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
791 |
}, |
792 |
"immune_roles": { |
793 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
794 |
}, |
795 |
"immune_users": { |
796 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
797 |
}, |
798 |
"actions": { |
799 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
800 |
}, |
801 |
"verbal_warning_reason": { |
802 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
803 |
}, |
804 |
"warning_reason": { |
805 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
806 |
}, |
807 |
"mute_reason": { |
808 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
809 |
}, |
810 |
"common_reason": { |
811 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
812 |
}, |
813 |
"mute_duration": { |
814 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
815 |
}, |
816 |
"data": { |
817 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/data" |
818 |
}, |
819 |
"type": { |
820 |
"type": "string", |
821 |
"const": "blocked_file_extension" |
822 |
} |
823 |
}, |
824 |
"required": [ |
825 |
"type" |
826 |
], |
827 |
"additionalProperties": false |
828 |
}, |
829 |
{ |
830 |
"type": "object", |
831 |
"properties": { |
832 |
"disabled_channels": { |
833 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
834 |
}, |
835 |
"immune_roles": { |
836 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
837 |
}, |
838 |
"immune_users": { |
839 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
840 |
}, |
841 |
"actions": { |
842 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
843 |
}, |
844 |
"verbal_warning_reason": { |
845 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
846 |
}, |
847 |
"warning_reason": { |
848 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
849 |
}, |
850 |
"mute_reason": { |
851 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
852 |
}, |
853 |
"common_reason": { |
854 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
855 |
}, |
856 |
"mute_duration": { |
857 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
858 |
}, |
859 |
"type": { |
860 |
"type": "string", |
861 |
"const": "anti_invite" |
862 |
}, |
863 |
"allowed_invite_codes": { |
864 |
"type": "array", |
865 |
"items": { |
866 |
"type": "string" |
867 |
}, |
868 |
"default": [] |
869 |
}, |
870 |
"allow_internal_invites": { |
871 |
"type": "boolean", |
872 |
"default": true |
873 |
} |
874 |
}, |
875 |
"required": [ |
876 |
"type" |
877 |
], |
878 |
"additionalProperties": false |
879 |
}, |
880 |
{ |
881 |
"type": "object", |
882 |
"properties": { |
883 |
"disabled_channels": { |
884 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
885 |
}, |
886 |
"immune_roles": { |
887 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
888 |
}, |
889 |
"immune_users": { |
890 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
891 |
}, |
892 |
"actions": { |
893 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
894 |
}, |
895 |
"verbal_warning_reason": { |
896 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
897 |
}, |
898 |
"warning_reason": { |
899 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
900 |
}, |
901 |
"mute_reason": { |
902 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
903 |
}, |
904 |
"common_reason": { |
905 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
906 |
}, |
907 |
"mute_duration": { |
908 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
909 |
}, |
910 |
"type": { |
911 |
"type": "string", |
912 |
"const": "regex_filter" |
913 |
}, |
914 |
"patterns": { |
915 |
"type": "array", |
916 |
"items": { |
917 |
"anyOf": [ |
918 |
{ |
919 |
"type": "string" |
920 |
}, |
921 |
{ |
922 |
"type": "array", |
923 |
"minItems": 2, |
924 |
"maxItems": 2, |
925 |
"items": [ |
926 |
{ |
927 |
"type": "string" |
928 |
}, |
929 |
{ |
930 |
"type": "string" |
931 |
} |
932 |
] |
933 |
} |
934 |
] |
935 |
}, |
936 |
"default": [] |
937 |
} |
938 |
}, |
939 |
"required": [ |
940 |
"type" |
941 |
], |
942 |
"additionalProperties": false |
943 |
}, |
944 |
{ |
945 |
"type": "object", |
946 |
"properties": { |
947 |
"disabled_channels": { |
948 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
949 |
}, |
950 |
"immune_roles": { |
951 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
952 |
}, |
953 |
"immune_users": { |
954 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
955 |
}, |
956 |
"actions": { |
957 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
958 |
}, |
959 |
"verbal_warning_reason": { |
960 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
961 |
}, |
962 |
"warning_reason": { |
963 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
964 |
}, |
965 |
"mute_reason": { |
966 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
967 |
}, |
968 |
"common_reason": { |
969 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
970 |
}, |
971 |
"mute_duration": { |
972 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
973 |
}, |
974 |
"type": { |
975 |
"type": "string", |
976 |
"const": "block_repeated_text" |
977 |
}, |
978 |
"max_repeated_chars": { |
979 |
"type": "integer", |
980 |
"default": 20 |
981 |
}, |
982 |
"max_repeated_words": { |
983 |
"type": "integer", |
984 |
"default": 15 |
985 |
} |
986 |
}, |
987 |
"required": [ |
988 |
"type" |
989 |
], |
990 |
"additionalProperties": false |
991 |
}, |
992 |
{ |
993 |
"type": "object", |
994 |
"properties": { |
995 |
"disabled_channels": { |
996 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
997 |
}, |
998 |
"immune_roles": { |
999 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
1000 |
}, |
1001 |
"immune_users": { |
1002 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
1003 |
}, |
1004 |
"actions": { |
1005 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
1006 |
}, |
1007 |
"verbal_warning_reason": { |
1008 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
1009 |
}, |
1010 |
"warning_reason": { |
1011 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
1012 |
}, |
1013 |
"mute_reason": { |
1014 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
1015 |
}, |
1016 |
"common_reason": { |
1017 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
1018 |
}, |
1019 |
"mute_duration": { |
1020 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
1021 |
}, |
1022 |
"type": { |
1023 |
"type": "string", |
1024 |
"const": "block_mass_mention" |
1025 |
}, |
1026 |
"max_mentions": { |
1027 |
"type": "integer", |
1028 |
"default": 15 |
1029 |
}, |
1030 |
"max_user_mentions": { |
1031 |
"type": "integer", |
1032 |
"default": -1 |
1033 |
}, |
1034 |
"max_role_mentions": { |
1035 |
"type": "integer", |
1036 |
"default": -1 |
1037 |
} |
1038 |
}, |
1039 |
"required": [ |
1040 |
"type" |
1041 |
], |
1042 |
"additionalProperties": false |
1043 |
}, |
1044 |
{ |
1045 |
"type": "object", |
1046 |
"properties": { |
1047 |
"disabled_channels": { |
1048 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" |
1049 |
}, |
1050 |
"immune_roles": { |
1051 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" |
1052 |
}, |
1053 |
"immune_users": { |
1054 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" |
1055 |
}, |
1056 |
"actions": { |
1057 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" |
1058 |
}, |
1059 |
"verbal_warning_reason": { |
1060 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" |
1061 |
}, |
1062 |
"warning_reason": { |
1063 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" |
1064 |
}, |
1065 |
"mute_reason": { |
1066 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" |
1067 |
}, |
1068 |
"common_reason": { |
1069 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" |
1070 |
}, |
1071 |
"mute_duration": { |
1072 |
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" |
1073 |
}, |
1074 |
"type": { |
1075 |
"type": "string", |
1076 |
"const": "regex_must_match" |
1077 |
}, |
1078 |
"patterns": { |
1079 |
"type": "array", |
1080 |
"items": { |
1081 |
"anyOf": [ |
1082 |
{ |
1083 |
"type": "string" |
1084 |
}, |
1085 |
{ |
1086 |
"type": "array", |
1087 |
"minItems": 2, |
1088 |
"maxItems": 2, |
1089 |
"items": [ |
1090 |
{ |
1091 |
"type": "string" |
1092 |
}, |
1093 |
{ |
1094 |
"type": "string" |
1095 |
} |
1096 |
] |
1097 |
} |
1098 |
] |
1099 |
}, |
1100 |
"default": [] |
1101 |
} |
1102 |
}, |
1103 |
"required": [ |
1104 |
"type" |
1105 |
], |
1106 |
"additionalProperties": false |
1107 |
} |
1108 |
] |
1109 |
}, |
1110 |
"default": [] |
1111 |
}, |
1112 |
"global_disabled_channels": { |
1113 |
"type": "array", |
1114 |
"items": { |
1115 |
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role" |
1116 |
}, |
1117 |
"default": [] |
1118 |
} |
1119 |
}, |
1120 |
"additionalProperties": false |
1121 |
} |
1122 |
}, |
1123 |
"additionalProperties": false |
1124 |
}, |
1125 |
{ |
1126 |
"type": "string" |
1127 |
} |
1128 |
] |
1129 |
}, |
1130 |
"$schema": "http://json-schema.org/draft-07/schema#" |
1131 |
} |