@@ -34,6 +34,17 @@ export const ModerationConfig = z.strictObject({
34
34
preset_reasons : z . array ( PresetReason ) . default ( [ ] ) , // TODO
35
35
preset_prefix : z . string ( ) . default ( "!" ) , // TODO
36
36
37
+ member_ranking : mappedEnum ( {
38
+ none : MemberRanking . None ,
39
+ highest_role : MemberRanking . HighestRole ,
40
+ level : MemberRanking . Level
41
+ } ) . default ( MemberRanking . HighestRole ) . describe (
42
+ "Customize the system used to determine whether a moderator can moderate a user.\n" +
43
+ "'none' allows anyone to be moderated by a moderator.\n" +
44
+ "'highest_role' reflects the behavior of Discord; you can only moderate users who's highest role is below yours.\n" +
45
+ "'level' is based on who has a higher level in the app's group system."
46
+ ) ,
47
+
37
48
ban : z . strictObject ( {
38
49
send_direct_message : z . boolean ( ) . default ( false ) ,
39
50
direct_message : messageTemplate ( actionParams ) . optional ( ) ,
@@ -63,17 +74,6 @@ export const ModerationConfig = z.strictObject({
63
74
preset_reasons : PresetReason . array ( ) . default ( discordReasons ) ,
64
75
} ) . prefault ( { } ) . describe ( "Configure warn behavior" ) ,
65
76
66
- member_ranking : mappedEnum ( {
67
- none : MemberRanking . None ,
68
- highest_role : MemberRanking . HighestRole ,
69
- level : MemberRanking . Level
70
- } ) . default ( MemberRanking . HighestRole ) . describe (
71
- "Customize the system used to determine whether a moderator can moderate a user.\n" +
72
- "'none' allows anyone to be moderated by a moderator.\n" +
73
- "'highest_role' reflects the behavior of Discord; you can only moderate users who's highest role is below yours.\n" +
74
- "'level' is based on who has a higher level in the app's group system."
75
- ) ,
76
-
77
77
default_permissions : z . strictObject ( {
78
78
ban : z . boolean ( ) . default ( false ) ,
79
79
unban : z . boolean ( ) . default ( false ) ,
0 commit comments