Class MessageMentionsImpl
java.lang.Object
net.dv8tion.jda.internal.entities.mentions.AbstractMentions
net.dv8tion.jda.internal.entities.MessageMentionsImpl
- All Implemented Interfaces:
Mentions
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.dv8tion.jda.internal.entities.mentions.AbstractMentions
getChannels, getChannels, getChannelsBag, getChannelsBag, getCustomEmojis, getCustomEmojisBag, getJDA, getMembersBag, getMentions, getRoles, getRolesBag, getSlashCommands, getSlashCommandsBag, getUsersBag, isMentioned, mentionsEveryone
-
Constructor Details
-
MessageMentionsImpl
-
-
Method Details
-
getMembers
Description copied from interface:Mentions
An immutable list of all mentionedMembers
.
If none were mentioned, this list is empty. Elements are sorted in order of appearance. This only counts direct mentions of the role and not mentions through everyone mentions.This is always empty in
PrivateChannels
andGroupChannels
.- Specified by:
getMembers
in interfaceMentions
- Overrides:
getMembers
in classAbstractMentions
- Returns:
- Immutable list of mentioned Members, or an empty list
-
getUsers
Description copied from interface:Mentions
An immutable list of all mentionedUsers
.
If no user was mentioned, this list is empty. Elements are sorted in order of appearance. This only counts direct mentions of the user and not mentions through roles or everyone mentions.This might also contain users which are not present in
Mentions.getMembers()
.- Specified by:
getUsers
in interfaceMentions
- Overrides:
getUsers
in classAbstractMentions
- Returns:
- Immutable list of mentioned users
-