Enum UserFlag

    • Enum Constant Detail

      • DISCORD_EMPLOYEE

        public static final UserFlag DISCORD_EMPLOYEE
      • DISCORD_PARTNER

        public static final UserFlag DISCORD_PARTNER
      • HYPESQUAD_EVENTS

        public static final UserFlag HYPESQUAD_EVENTS
      • BUG_HUNTER_LEVEL_1

        public static final UserFlag BUG_HUNTER_LEVEL_1
      • HOUSE_BRAVERY

        public static final UserFlag HOUSE_BRAVERY
      • HOUSE_BRILLIANCE

        public static final UserFlag HOUSE_BRILLIANCE
      • HOUSE_BALANCE

        public static final UserFlag HOUSE_BALANCE
      • EARLY_SUPPORTER

        public static final UserFlag EARLY_SUPPORTER
      • TEAM_USER

        public static final UserFlag TEAM_USER
      • SYSTEM

        public static final UserFlag SYSTEM
      • BUG_HUNTER_LEVEL_2

        public static final UserFlag BUG_HUNTER_LEVEL_2
      • VERIFIED_BOT

        public static final UserFlag VERIFIED_BOT
      • VERIFIED_BOT_DEVELOPER

        public static final UserFlag VERIFIED_BOT_DEVELOPER
    • Method Detail

      • values

        public static UserFlag[] 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 (UserFlag c : UserFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UserFlag 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
      • asInt

        public int asInt​()
        Gets the integer value of the flag.
        Returns:
        The integer value of the flag.
      • getDescription

        public String getDescription​()
        Gets the description of the flag.
        Returns:
        The description of the flag.