Package org.javacord.api.entity.user
Enum UserFlag
- java.lang.Object
-
- java.lang.Enum<UserFlag>
-
- org.javacord.api.entity.user.UserFlag
-
- All Implemented Interfaces:
Serializable,Comparable<UserFlag>
public enum UserFlag extends Enum<UserFlag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUG_HUNTER_LEVEL_1BUG_HUNTER_LEVEL_2DISCORD_EMPLOYEEDISCORD_PARTNEREARLY_SUPPORTERHOUSE_BALANCEHOUSE_BRAVERYHOUSE_BRILLIANCEHYPESQUAD_EVENTSSYSTEMTEAM_USERVERIFIED_BOTVERIFIED_BOT_DEVELOPER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intasInt()Gets the integer value of the flag.StringgetDescription()Gets the description of the flag.static UserFlagvalueOf(String name)Returns the enum constant of this type with the specified name.static UserFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- 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.
-
-