Package org.javacord.api.entity.user
Enum UserFlag
- java.lang.Object
-
- java.lang.Enum<UserFlag>
-
- org.javacord.api.entity.user.UserFlag
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOT_HTTP_INTERACTIONSBUG_HUNTER_LEVEL_1BUG_HUNTER_LEVEL_2CERTIFIED_MODERATORHOUSE_BALANCEHOUSE_BRAVERYHOUSE_BRILLIANCEHYPESQUADNONEPARTNERPREMIUM_EARLY_SUPPORTERSTAFFTEAM_PSEUDO_USERVERIFIED_BOTVERIFIED_DEVELOPER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intasInt()Gets the integer value of the flag.java.lang.StringgetDescription()Gets the description of the flag.static UserFlagvalueOf(java.lang.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
-
NONE
public static final UserFlag NONE
-
STAFF
public static final UserFlag STAFF
-
PARTNER
public static final UserFlag PARTNER
-
HYPESQUAD
public static final UserFlag HYPESQUAD
-
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
-
PREMIUM_EARLY_SUPPORTER
public static final UserFlag PREMIUM_EARLY_SUPPORTER
-
TEAM_PSEUDO_USER
public static final UserFlag TEAM_PSEUDO_USER
-
BUG_HUNTER_LEVEL_2
public static final UserFlag BUG_HUNTER_LEVEL_2
-
VERIFIED_BOT
public static final UserFlag VERIFIED_BOT
-
VERIFIED_DEVELOPER
public static final UserFlag VERIFIED_DEVELOPER
-
CERTIFIED_MODERATOR
public static final UserFlag CERTIFIED_MODERATOR
-
BOT_HTTP_INTERACTIONS
public static final UserFlag BOT_HTTP_INTERACTIONS
-
-
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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.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 java.lang.String getDescription()
Gets the description of the flag.- Returns:
- The description of the flag.
-
-