aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-09 13:42:35 -0400
committerRapptz <[email protected]>2017-05-09 13:42:35 -0400
commita0fc1402d759c1982423bea704393c3e7b1c08a7 (patch)
tree39584f438391b1cbcd698d13eec3ea56c303047b /discord/guild.py
parentProperly check for audit log entry termination. (diff)
downloaddiscord.py-a0fc1402d759c1982423bea704393c3e7b1c08a7.tar.xz
discord.py-a0fc1402d759c1982423bea704393c3e7b1c08a7.zip
Rename GuildRegion to VoiceRegion.
This naming makes more sense since voice regions are not a guild exclusive concept.
Diffstat (limited to 'discord/guild.py')
-rw-r--r--discord/guild.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 55e8fd53..a355f46d 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -37,7 +37,7 @@ from .permissions import PermissionOverwrite
from .colour import Colour
from .errors import InvalidArgument, ClientException
from .channel import *
-from .enums import GuildRegion, Status, ChannelType, try_enum, VerificationLevel, ContentFilter
+from .enums import VoiceRegion, Status, ChannelType, try_enum, VerificationLevel, ContentFilter
from .mixins import Hashable
from .user import User
from .invite import Invite
@@ -72,7 +72,7 @@ class Guild(Hashable):
A list of :class:`Role` that the guild has available.
emojis
A tuple of :class:`Emoji` that the guild owns.
- region: :class:`GuildRegion`
+ region: :class:`VoiceRegion`
The region the guild belongs on. There is a chance that the region
will be a ``str`` if the value is not recognised by the enumerator.
afk_timeout: int
@@ -195,7 +195,7 @@ class Guild(Hashable):
self._member_count = member_count
self.name = guild.get('name')
- self.region = try_enum(GuildRegion, guild.get('region'))
+ self.region = try_enum(VoiceRegion, guild.get('region'))
self.verification_level = try_enum(VerificationLevel, guild.get('verification_level'))
self.explicit_content_filter = try_enum(ContentFilter, guild.get('explicit_content_filter', 0))
self.afk_timeout = guild.get('afk_timeout')
@@ -581,7 +581,7 @@ class Guild(Hashable):
Only PNG/JPEG supported. Could be ``None`` to denote removing the
splash. Only available for partnered guilds with ``INVITE_SPLASH``
feature.
- region: :class:`GuildRegion`
+ region: :class:`VoiceRegion`
The new region for the guild's voice communication.
afk_channel: :class:`VoiceChannel`
The new channel that is the AFK channel. Could be ``None`` for no AFK channel.