Modifier and Type | Method | Description |
---|---|---|
static Region |
fromKey(java.lang.String key) |
Retrieves the
Region based on the provided key. |
java.lang.String |
getEmoji() |
The unicode flag representative of this Region.
|
java.lang.String |
getKey() |
The Region key as defined by Discord.
|
java.lang.String |
getName() |
The human readable region name.
|
boolean |
isVip() |
Whether or not this Region is a VIP region.
|
java.lang.String |
toString() |
|
static Region |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Region[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Region AMSTERDAM
public static final Region BRAZIL
public static final Region EU_CENTRAL
public static final Region EU_WEST
public static final Region FRANKFURT
public static final Region HONG_KONG
public static final Region JAPAN
public static final Region LONDON
public static final Region RUSSIA
public static final Region SINGAPORE
public static final Region SOUTH_AFRICA
public static final Region SYDNEY
public static final Region US_CENTRAL
public static final Region US_EAST
public static final Region US_SOUTH
public static final Region US_WEST
public static final Region VIP_AMSTERDAM
public static final Region VIP_BRAZIL
public static final Region VIP_EU_CENTRAL
public static final Region VIP_EU_WEST
public static final Region VIP_FRANKFURT
public static final Region VIP_JAPAN
public static final Region VIP_LONDON
public static final Region VIP_SINGAPORE
public static final Region VIP_SOUTH_AFRICA
public static final Region VIP_SYDNEY
public static final Region VIP_US_CENTRAL
public static final Region VIP_US_EAST
public static final Region VIP_US_SOUTH
public static final Region VIP_US_WEST
public static final Region UNKNOWN
public static Region[] values()
for (Region c : Region.values()) System.out.println(c);
public static Region valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String getKey()
public java.lang.String getEmoji()
public boolean isVip()
public static Region fromKey(java.lang.String key)
Region
based on the provided key.public java.lang.String toString()
toString
in class java.lang.Enum<Region>