File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
application/src/main/java/org/togetherjava/tjbot Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ public record DynamicVoiceChatConfig(
2323 @ JsonProperty (value = "cleanChannelsAmount" ) int cleanChannelsAmount ,
2424 @ JsonProperty (value = "minimumChannelsAmount" , required = true ) int minimumChannelsAmount ) {
2525
26+ /**
27+ * Constructs an instance of {@code DynamicVoiceChatConfig} and throws if
28+ * {@code dynamicChannelPatterns} or @{code archiveCategoryPattern} is null.
29+ */
2630 public DynamicVoiceChatConfig {
2731 Objects .requireNonNull (dynamicChannelPatterns );
2832 Objects .requireNonNull (archiveCategoryPattern );
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ public final class DynamicVoiceChat extends VoiceReceiverAdapter {
3535 private final VoiceChatCleanupStrategy voiceChatCleanupStrategy ;
3636 private final DynamicVoiceChatConfig dynamicVoiceChannelConfig ;
3737
38+ /**
39+ * Creates a new instance of {@code DynamicVoiceChat}
40+ *
41+ * @param config the configurations needed for this feature. See:
42+ * {@link org.togetherjava.tjbot.config.DynamicVoiceChatConfig}
43+ */
3844 public DynamicVoiceChat (Config config ) {
3945 this .dynamicVoiceChannelConfig = config .getDynamicVoiceChatConfig ();
4046
Original file line number Diff line number Diff line change 1+ /**
2+ * This package contains classes for the dynamic voice chat functionality.
3+ */
4+ @ MethodsReturnNonnullByDefault
5+ @ ParametersAreNonnullByDefault
6+ package org .togetherjava .tjbot .features .voicechat ;
7+
8+ import org .togetherjava .tjbot .annotations .MethodsReturnNonnullByDefault ;
9+
10+ import javax .annotation .ParametersAreNonnullByDefault ;
You can’t perform that action at this time.
0 commit comments