This repository was archived by the owner on Jun 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
src/main/java/com/mewna/catnip/entity Expand file tree Collapse file tree 2 files changed +28
-1
lines changed 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 @@ -146,6 +146,9 @@ public enum GuildFeature {
146
146
* Needs {@link PremiumTier TIER_3}
147
147
*/
148
148
ANIMATED_BANNER ,
149
+ MEMBER_PROFILES ,
150
+ TEXT_IN_VOICE_ENABLED ,
151
+ PREMIUM_TIER_3_OVERRIDE ,
149
152
/**
150
153
* Needs {@link PremiumTier TIER_3}
151
154
* See https://github.com/Discord-Datamining/Discord-Datamining/commit/4c6e7180e67fa439c0a550afe016d418c21146b9
You can’t perform that action at this time.
0 commit comments