Package net.dv8tion.jda.api
Enum Region
- All Implemented Interfaces:
Serializable
,Comparable<Region>
Represents the Regions used for Audio connections.
This is used by
This is used by
AudioChannels
to define where the audio server that hosts the
AudioChannel
is located.-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Region
Retrieves theRegion
based on the provided key.getEmoji()
The unicode flag representative of this Region.getKey()
The Region key as defined by Discord.getName()
The human readable region name.boolean
isVip()
Whether or not this Region is a VIP region.toString()
static Region
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.
-
Enum Constant Details
-
BRAZIL
-
HONG_KONG
-
INDIA
-
JAPAN
-
MILAN
-
ROTTERDAM
-
RUSSIA
-
SINGAPORE
-
SOUTH_AFRICA
-
SOUTH_KOREA
-
SYDNEY
-
US_CENTRAL
-
US_EAST
-
US_SOUTH
-
US_WEST
-
VIP_BRAZIL
-
VIP_HONG_KONG
-
VIP_INDIA
-
VIP_JAPAN
-
VIP_MILAN
-
VIP_ROTTERDAM
-
VIP_RUSSIA
-
VIP_SINGAPORE
-
VIP_SOUTH_AFRICA
-
VIP_SOUTH_KOREA
-
VIP_SYDNEY
-
VIP_US_CENTRAL
-
VIP_US_EAST
-
VIP_US_SOUTH
-
VIP_US_WEST
-
UNKNOWN
-
AUTOMATIC
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getName
The human readable region name.- Returns:
- The name of this region
-
getKey
The Region key as defined by Discord.- Returns:
- The key (internal name) of this region
-
getEmoji
The unicode flag representative of this Region.- Returns:
- Possibly-null unicode for the region's flag
-
isVip
public boolean isVip()Whether or not this Region is a VIP region.
VIP regions have special perks like higher bitrate in VoiceChannels and priority during times of high Discord usage.- Returns:
- True if this region is a VIP audio region.
-
fromKey
Retrieves theRegion
based on the provided key. -
toString
-