@@ -44,6 +44,7 @@ public final class Config {
44
44
private final HelperPruneConfig helperPruneConfig ;
45
45
private final FeatureBlacklistConfig featureBlacklistConfig ;
46
46
private final String selectRolesChannelPattern ;
47
+ private final String memberCountCategoryPattern ;
47
48
48
49
@ SuppressWarnings ("ConstructorWithTooManyParameters" )
49
50
@ JsonCreator (mode = JsonCreator .Mode .PROPERTIES )
@@ -86,6 +87,8 @@ private Config(@JsonProperty(value = "token", required = true) String token,
86
87
@ JsonProperty (value = "openaiApiKey" , required = true ) String openaiApiKey ,
87
88
@ JsonProperty (value = "sourceCodeBaseUrl" , required = true ) String sourceCodeBaseUrl ,
88
89
@ JsonProperty (value = "jshell" , required = true ) JShellConfig jshell ,
90
+ @ JsonProperty (value = "memberCountCategoryPattern" ,
91
+ required = true ) String memberCountCategoryPattern ,
89
92
@ JsonProperty (value = "helperPruneConfig" ,
90
93
required = true ) HelperPruneConfig helperPruneConfig ,
91
94
@ JsonProperty (value = "featureBlacklist" ,
@@ -96,6 +99,7 @@ private Config(@JsonProperty(value = "token", required = true) String token,
96
99
this .githubApiKey = Objects .requireNonNull (githubApiKey );
97
100
this .databasePath = Objects .requireNonNull (databasePath );
98
101
this .projectWebsite = Objects .requireNonNull (projectWebsite );
102
+ this .memberCountCategoryPattern = Objects .requireNonNull (memberCountCategoryPattern );
99
103
this .discordGuildInvite = Objects .requireNonNull (discordGuildInvite );
100
104
this .modAuditLogChannelPattern = Objects .requireNonNull (modAuditLogChannelPattern );
101
105
this .modMailChannelPattern = Objects .requireNonNull (modMailChannelPattern );
@@ -405,4 +409,13 @@ public FeatureBlacklistConfig getFeatureBlacklistConfig() {
405
409
public String getSelectRolesChannelPattern () {
406
410
return selectRolesChannelPattern ;
407
411
}
412
+
413
+ /**
414
+ * Gets the pattern matching the category that is used to display the total member count.
415
+ *
416
+ * @return the categories name types
417
+ */
418
+ public String getMemberCountCategoryPattern () {
419
+ return memberCountCategoryPattern ;
420
+ }
408
421
}
0 commit comments