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 Channel
MAX_NAME_LENGTHFields inherited from interface 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 Comparable
compareToMethods inherited from interface GuildChannel
delete, getGuild, getJumpUrl, getManager, getPermissionContainerMethods inherited from interface IDetachableEntity
isDetachedMethods inherited from interface 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
-