Enum Class Mentions

java.lang.Object
java.lang.Enum<Mentions>
kboyle.oktane.discord4j.Mentions
All Implemented Interfaces:
Serializable, Comparable<Mentions>, Constable

public enum Mentions extends Enum<Mentions>
  • Enum Constant Details

    • USER

      public static final Mentions USER
    • ROLE

      public static final Mentions ROLE
    • CHANNEL

      public static final Mentions CHANNEL
  • Method Details

    • values

      public static Mentions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Mentions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • parseExact

      public Optional<discord4j.common.util.Snowflake> parseExact(String str)
    • parseExact

      public Optional<discord4j.common.util.Snowflake> parseExact(String str, int startIndex, int endIndex)
    • mention

      public String mention(discord4j.common.util.Snowflake id)