File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
src/main/java/org/togetherjava/tjbot Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 9797 }
9898 "starboard": {
9999 "emojiNames" : ["star"],
100- "starboard ": "oofs_and_lmaos "
100+ "channelName ": "starboard "
101101 }
102102}
Original file line number Diff line number Diff line change 99@ JsonRootName ("starboard" )
1010public final class StarboardConfig {
1111 private final List <String > emojiNames ;
12- private final String starboard ;
12+ private final String channelName ;
1313
1414 @ JsonCreator (mode = JsonCreator .Mode .PROPERTIES )
1515 public StarboardConfig (
1616 @ JsonProperty (value = "emojiNames" , required = true ) List <String > emojiNames ,
17- @ JsonProperty (value = "channelName" , required = true ) String starboard ) {
17+ @ JsonProperty (value = "channelName" , required = true ) String channelName ) {
1818 this .emojiNames = emojiNames ;
19- this .starboard = starboard ;
19+ this .channelName = channelName ;
2020 }
2121
2222 /**
@@ -38,7 +38,7 @@ public List<String> getEmojiNames() {
3838 * @return the name of the channel with the starboard
3939 */
4040
41- public String getStarboard () {
42- return starboard ;
41+ public String getChannelName () {
42+ return channelName ;
4343 }
4444}
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ public void onMessageReactionAdd(@NotNull MessageReactionAddEvent event) {
3939 return ;
4040 }
4141 Optional <TextChannel > starboardChannel =
42- guild .getTextChannelsByName (config .getStarboard (), false ).stream ().findFirst ();
42+ guild .getTextChannelsByName (config .getChannelName (), false ).stream ().findFirst ();
4343 if (starboardChannel .isEmpty ()) {
4444 logger .warn ("There is no channel for the starboard in the guild with the name {}" ,
45- config .getStarboard ());
45+ config .getChannelName ());
4646 return ;
4747 }
4848 event .getChannel ()
You can’t perform that action at this time.
0 commit comments