diff options
| author | Rapptz <[email protected]> | 2017-05-09 13:42:35 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-09 13:42:35 -0400 |
| commit | a0fc1402d759c1982423bea704393c3e7b1c08a7 (patch) | |
| tree | 39584f438391b1cbcd698d13eec3ea56c303047b /discord/calls.py | |
| parent | Properly check for audit log entry termination. (diff) | |
| download | discord.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/calls.py')
| -rw-r--r-- | discord/calls.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/calls.py b/discord/calls.py index c8670b3b..f6253d00 100644 --- a/discord/calls.py +++ b/discord/calls.py @@ -27,7 +27,7 @@ DEALINGS IN THE SOFTWARE. import datetime from . import utils -from .enums import GuildRegion, try_enum +from .enums import VoiceRegion, try_enum from .member import VoiceState class CallMessage: @@ -91,7 +91,7 @@ class GroupCall: Denotes if this group call is unavailable. ringing: List[:class:`User`] A list of users that are currently being rung to join the call. - region: :class:`GuildRegion` + region: :class:`VoiceRegion` The guild region the group call is being hosted on. """ @@ -106,7 +106,7 @@ class GroupCall: self._update(**kwargs) def _update(self, **kwargs): - self.region = try_enum(GuildRegion, kwargs.get('region')) + self.region = try_enum(VoiceRegion, kwargs.get('region')) lookup = {u.id: u for u in self.call.channel.recipients} me = self.call.channel.me lookup[me.id] = me |