11package org .togetherjava .tjbot .config ;
22
33import com .fasterxml .jackson .annotation .JsonCreator ;
4- import com .fasterxml .jackson .annotation .JsonProperty ;
54import com .fasterxml .jackson .annotation .JsonRootName ;
65
76import java .util .List ;
87import java .util .Objects ;
98
9+ /**
10+ * Starboard Config
11+ *
12+ * @param emojiNames the List of emojis which are recognized by the starboard
13+ * @param channelName the name of the channel with the starboard
14+ */
1015@ JsonRootName ("starboard" )
1116public record StarboardConfig (List <String > emojiNames , String channelName ) {
17+ /**
18+ * Creates a Starboard config.
19+ *
20+ * @param emojiNames the List of emojis which are recognized by the starboard
21+ * @param channelName the name of the channel with the starboard
22+ */
1223 @ JsonCreator (mode = JsonCreator .Mode .PROPERTIES )
13- public StarboardConfig (
14- @ JsonProperty (value = "emojiNames" , required = true ) List <String > emojiNames ,
15- @ JsonProperty (value = "channelName" , required = true ) String channelName ) {
16- this .emojiNames = Objects .requireNonNull (emojiNames );
17- this .channelName = Objects .requireNonNull (channelName );
24+ public StarboardConfig {
25+ Objects .requireNonNull (emojiNames );
26+ Objects .requireNonNull (channelName );
1827 }
1928
2029 /**
2130 * Gets the list of emotes that are recognized by the starboard feature. A message that is
22- * reacted on with an emote in this list will be reposted in a special channel.
31+ * reacted on with an emote in this list will be reposted in a special channel
32+ * {@link #channelName()}.
2333 * <p>
2434 * Empty to deactivate the feature.
2535 *
@@ -31,8 +41,8 @@ public List<String> emojiNames() {
3141 }
3242
3343 /**
34- * Gets the name of the channel with the starboard Deactivate by using a non-existent channel
35- * name
44+ * Gets the name of the channel with the starboard. Deactivate by using a non-existent channel
45+ * name.
3646 *
3747 * @return the name of the channel with the starboard
3848 */
0 commit comments