This repository was archived by the owner on Jun 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +36
-2
lines changed
src/main/java/com/mewna/catnip/entity Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 158
158
<groupId >ch.qos.logback</groupId >
159
159
<artifactId >logback-classic</artifactId >
160
160
<version >${logback.version} </version >
161
- <scope >test</scope >
161
+ <!-- <scope>test</scope> -- >
162
162
</dependency >
163
163
164
164
<!-- Deep/recursive field by field comparing ignoring any equals() methods -->
Original file line number Diff line number Diff line change 28
28
package com .mewna .catnip .entity .channel ;
29
29
30
30
import javax .annotation .CheckReturnValue ;
31
+ import javax .annotation .Nullable ;
31
32
32
33
/**
33
34
* A voice channel in a guild.
34
35
*
35
36
* @author natanbc
36
37
* @since 9/12/18
37
38
*/
38
- public interface VoiceChannel extends GuildChannel {
39
+ public interface VoiceChannel extends TextChannel {
39
40
/**
40
41
* @return The bitrate of this channel. Will be from 8 to 96.
41
42
*/
@@ -76,4 +77,27 @@ default boolean isVoice() {
76
77
default boolean isCategory () {
77
78
return false ;
78
79
}
80
+
81
+ /**
82
+ * Voice channels will never have a topic.
83
+ *
84
+ * @return {@code null}
85
+ */
86
+ @ Nullable
87
+ @ Override
88
+ default String topic () {
89
+ return null ;
90
+ }
91
+
92
+ @ Override
93
+ default boolean nsfw () {
94
+ // TODO: Wait for confirmation from maxg about this flag, currently TBD
95
+ return false ;
96
+ }
97
+
98
+ @ Override
99
+ default int rateLimitPerUser () {
100
+ // TODO: Wait for confirmation from maxg about this, currently TBD
101
+ return 0 ;
102
+ }
79
103
}
Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ public enum GuildFeature {
142
142
* See https://github.com/mewna/catnip/issues/613.
143
143
*/
144
144
ANIMATED_BANNER ,
145
+ MEMBER_PROFILES ,
146
+ TEXT_IN_VOICE_ENABLED ,
147
+ PREMIUM_TIER_3_OVERRIDE ,
145
148
/**
146
149
* When no other feature matches.
147
150
*/
Original file line number Diff line number Diff line change 35
35
import lombok .experimental .Accessors ;
36
36
37
37
import javax .annotation .Nonnull ;
38
+ import javax .annotation .Nullable ;
38
39
import java .util .List ;
39
40
40
41
/**
@@ -85,4 +86,10 @@ public boolean equals(final Object obj) {
85
86
public String toString () {
86
87
return String .format ("VoiceChannel (%s)" , name );
87
88
}
89
+
90
+ @ Nullable
91
+ @ Override
92
+ public String topic () {
93
+ return null ;
94
+ }
88
95
}
You can’t perform that action at this time.
0 commit comments