From 98b981848d757e8fb66d4a874a3107c0e8de2963 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 3 Jan 2017 08:41:44 -0500 Subject: Move message creation to a factory method inside ConnectionState. --- discord/calls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/calls.py') 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 -- cgit v1.2.3