Add remaining server regions to the enum.

This commit is contained in:
Rapptz 2016-07-14 15:03:43 -04:00
parent a128249b63
commit e60047b756
2 changed files with 26 additions and 9 deletions

View File

@ -44,15 +44,19 @@ class MessageType(Enum):
channel_icon_change = 5
class ServerRegion(Enum):
us_west = 'us-west'
us_east = 'us-east'
us_south = 'us-south'
us_central = 'us-central'
singapore = 'singapore'
london = 'london'
sydney = 'sydney'
amsterdam = 'amsterdam'
frankfurt = 'frankfurt'
us_west = 'us-west'
us_east = 'us-east'
us_south = 'us-south'
us_central = 'us-central'
singapore = 'singapore'
london = 'london'
sydney = 'sydney'
amsterdam = 'amsterdam'
frankfurt = 'frankfurt'
brazil = 'brazil'
vip_us_east = 'vip-us-east'
vip_us_west = 'vip-us-west'
vip_amsterdam = 'vip-amsterdam'
def __str__(self):
return self.value

View File

@ -451,6 +451,19 @@ All enumerations are subclasses of `enum`_.
The Frankfurt region.
.. attribute:: brazil
The Brazil region.
.. attribute:: vip_us_east
The US East region for VIP servers.
.. attribute:: vip_us_west
The US West region for VIP servers.
.. attribute:: vip_amsterdam
The Amsterdam region for VIP servers.
.. class:: Status
Specifies a :class:`Member` 's status.