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
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:
-
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
formatTo, getAsMention, getJDA, getName, getTypeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.dv8tion.jda.api.entities.GuildChannel
delete, getGuild, getManager, getPermissionContainerMethods 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.
-