diff options
| author | Rapptz <[email protected]> | 2017-01-03 08:41:44 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 09:52:10 -0500 |
| commit | 98b981848d757e8fb66d4a874a3107c0e8de2963 (patch) | |
| tree | f0969e87a7835b6b253fa1f47381ba4045b1ae2a /discord/calls.py | |
| parent | Move away from StateContext and use ConnectionState directly. (diff) | |
| download | discord.py-98b981848d757e8fb66d4a874a3107c0e8de2963.tar.xz discord.py-98b981848d757e8fb66d4a874a3107c0e8de2963.zip | |
Move message creation to a factory method inside ConnectionState.
Diffstat (limited to 'discord/calls.py')
| -rw-r--r-- | discord/calls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/calls.py b/discord/calls.py index d4ec4367..5b181d75 100644 --- a/discord/calls.py +++ b/discord/calls.py @@ -25,8 +25,8 @@ DEALINGS IN THE SOFTWARE. """ import datetime -import discord.utils +from . import utils from .enums import GuildRegion, try_enum from .member import VoiceState @@ -48,7 +48,7 @@ class CallMessage: def __init__(self, message, **kwargs): self.message = message - self.ended_timestamp = discord.utils.parse_time(kwargs.get('ended_timestamp')) + self.ended_timestamp = utils.parse_time(kwargs.get('ended_timestamp')) self.participants = kwargs.get('participants') @property |