Enum Message.MentionType

    • Enum Constant Detail

      • USER

        public static final Message.MentionType USER
        Represents a mention for a User/Member
        The first and only group matches the id of the mention.
      • ROLE

        public static final Message.MentionType ROLE
        Represents a mention for a Role
        The first and only group matches the id of the mention.
      • CHANNEL

        public static final Message.MentionType CHANNEL
        Represents a mention for a TextChannel
        The first and only group matches the id of the mention.
      • EMOTE

        public static final Message.MentionType EMOTE
        Represents a mention for a Emote
        The first group matches the name of the emote and the second the id of the mention.
      • HERE

        public static final Message.MentionType HERE
        Represents a mention for all active users, literal @here
      • EVERYONE

        public static final Message.MentionType EVERYONE
        Represents a mention for all users in a server, literal @everyone.
    • Method Detail

      • values

        public static Message.MentionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Message.MentionType c : Message.MentionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Message.MentionType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null