Browse Source

Add remaining server regions to the enum.

pull/276/head
Rapptz 9 years ago
parent
commit
e60047b756
  1. 22
      discord/enums.py
  2. 13
      docs/api.rst

22
discord/enums.py

@ -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

13
docs/api.rst

@ -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.

Loading…
Cancel
Save