Package net.dv8tion.jda.api.entities
Interface IMemberContainer
-
- All Superinterfaces:
Channel
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,IMentionable
,ISnowflake
- All Known Subinterfaces:
AudioChannel
,BaseGuildMessageChannel
,Category
,NewsChannel
,StageChannel
,StoreChannel
,TextChannel
,ThreadChannel
,VoiceChannel
public interface IMemberContainer extends GuildChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Member>
getMembers()
A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.-
Methods inherited from interface net.dv8tion.jda.api.entities.Channel
formatTo, getAsMention, getJDA, getName, getType
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface net.dv8tion.jda.api.entities.GuildChannel
delete, getGuild, getManager, getPermissionContainer
-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
-
-
-
Method Detail
-
getMembers
@Nonnull List<Member> getMembers()
A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.
ForVoiceChannels
, this returns all Members that joined that VoiceChannel.
ForCategories
, this returns all Members who are in its child channels.- Returns:
- An immutable List of
Members
that are in this GuildChannel.
-
-