Interface IMemberContainer
- All Superinterfaces:
 Channel,Comparable<GuildChannel>,Formattable,GuildChannel,IDetachableEntity,IMentionable,ISnowflake
- All Known Subinterfaces:
 AudioChannel,AudioChannelUnion,Category,DefaultGuildChannelUnion,ForumChannel,MediaChannel,NewsChannel,StageChannel,StandardGuildChannel,StandardGuildMessageChannel,TextChannel,ThreadChannel,VoiceChannel
Represents a 
GuildChannel that is capable of containing members.
 Implementations interpret this meaning as best applies to them:
For example,
TextChannelsimplement this as themembersthat havePermission.VIEW_CHANNELVoiceChannelsimplement this as whatmembersare currently connected to the channel.
- See Also:
 
- 
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTHFields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL - 
Method Summary
Modifier and TypeMethodDescriptionA List of allMembersthat are in this GuildChannel
ForTextChannels, this returns all Members with thePermission.VIEW_CHANNELPermission.Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getTypeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
delete, getGuild, getJumpUrl, getManager, getPermissionContainerMethods inherited from interface net.dv8tion.jda.api.entities.detached.IDetachableEntity
isDetachedMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated 
- 
Method Details
- 
getMembers
A List of allMembersthat are in this GuildChannel
ForTextChannels, this returns all Members with thePermission.VIEW_CHANNELPermission.
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 
Membersthat are in this GuildChannel. - Throws:
 DetachedEntityException- If this entity isdetached
 
 -