From a0fc1402d759c1982423bea704393c3e7b1c08a7 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 9 May 2017 13:42:35 -0400 Subject: Rename GuildRegion to VoiceRegion. This naming makes more sense since voice regions are not a guild exclusive concept. --- discord/guild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/guild.py') 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. -- cgit v1.2.3