-
-
Notifications
You must be signed in to change notification settings - Fork 722
/
Category.java
36 lines (32 loc) · 1.1 KB
/
Category.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package net.dv8tion.jda.core.entities;
import java.util.List;
/**
* Represents a channel category in the official Discord API.
* <br>Categories are used to keep order in a Guild by dividing the channels into groups.
*/
public interface Category extends Channel, Comparable<Category>
{
/**
* All {@link net.dv8tion.jda.core.entities.Channel Channels} listed
* for this Category
* <br>This may contain both {@link net.dv8tion.jda.core.entities.VoiceChannel VoiceChannels}
* and {@link net.dv8tion.jda.core.entities.TextChannel TextChannels}!
*
* @return Immutable list of all child channels
*/
List<Channel> getChannels();
/**
* All {@link net.dv8tion.jda.core.entities.TextChannel TextChannels}
* listed for this Category
*
* @return Immutable list of all child TextChannels
*/
List<TextChannel> getTextChannels();
/**
* All {@link net.dv8tion.jda.core.entities.VoiceChannel VoiceChannels}
* listed for this Category
*
* @return Immutable list of all child VoiceChannels
*/
List<VoiceChannel> getVoiceChannels();
}