Class MessageMentionsImpl

java.lang.Object
net.dv8tion.jda.internal.entities.mentions.AbstractMentions
net.dv8tion.jda.internal.entities.MessageMentionsImpl
All Implemented Interfaces:
Mentions

public class MessageMentionsImpl extends AbstractMentions
  • Constructor Details

  • Method Details

    • getMembers

      @Nonnull public List<Member> getMembers()
      Description copied from interface: Mentions
      An immutable list of all mentioned Members.
      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 and GroupChannels.

      Specified by:
      getMembers in interface Mentions
      Overrides:
      getMembers in class AbstractMentions
      Returns:
      Immutable list of mentioned Members, or an empty list
    • getUsers

      @Nonnull public List<User> getUsers()
      Description copied from interface: Mentions
      An immutable list of all mentioned Users.
      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 interface Mentions
      Overrides:
      getUsers in class AbstractMentions
      Returns:
      Immutable list of mentioned users