@@ -41,7 +41,7 @@ public final class Config {
41
41
private final JShellConfig jshell ;
42
42
private final HelperPruneConfig helperPruneConfig ;
43
43
private final FeatureBlacklistConfig featureBlacklistConfig ;
44
- private final String selectRolesChannelPatten ;
44
+ private final String selectRolesChannelPattern ;
45
45
46
46
@ SuppressWarnings ("ConstructorWithTooManyParameters" )
47
47
@ JsonCreator (mode = JsonCreator .Mode .PROPERTIES )
@@ -85,7 +85,7 @@ private Config(@JsonProperty(value = "token", required = true) String token,
85
85
@ JsonProperty (value = "featureBlacklist" ,
86
86
required = true ) FeatureBlacklistConfig featureBlacklistConfig ,
87
87
@ JsonProperty (value = "selectRolesChannelPattern" ,
88
- required = true ) String selectRolesChannelPatten ) {
88
+ required = true ) String selectRolesChannelPattern ) {
89
89
this .token = Objects .requireNonNull (token );
90
90
this .gistApiKey = Objects .requireNonNull (gistApiKey );
91
91
this .databasePath = Objects .requireNonNull (databasePath );
@@ -113,7 +113,7 @@ private Config(@JsonProperty(value = "token", required = true) String token,
113
113
this .jshell = Objects .requireNonNull (jshell );
114
114
this .helperPruneConfig = Objects .requireNonNull (helperPruneConfig );
115
115
this .featureBlacklistConfig = Objects .requireNonNull (featureBlacklistConfig );
116
- this .selectRolesChannelPatten = Objects .requireNonNull (selectRolesChannelPatten );
116
+ this .selectRolesChannelPattern = Objects .requireNonNull (selectRolesChannelPattern );
117
117
}
118
118
119
119
/**
@@ -373,7 +373,13 @@ public FeatureBlacklistConfig getFeatureBlacklistConfig() {
373
373
return featureBlacklistConfig ;
374
374
}
375
375
376
- public String getSelectRolesChannelPatten () {
377
- return selectRolesChannelPatten ;
376
+ /**
377
+ * Gets the REGEX pattern used to identify the channel in which users can select their helper
378
+ * roles.
379
+ *
380
+ * @return the channel name pattern
381
+ */
382
+ public String getSelectRolesChannelPattern () {
383
+ return selectRolesChannelPattern ;
378
384
}
379
385
}
0 commit comments