Fix CallMessage.duration calculation
This commit is contained in:
parent
427d0aae86
commit
b3bfec9119
@ -74,9 +74,9 @@ class CallMessage:
|
|||||||
The timedelta object representing the duration.
|
The timedelta object representing the duration.
|
||||||
"""
|
"""
|
||||||
if self.ended_timestamp is None:
|
if self.ended_timestamp is None:
|
||||||
return datetime.datetime.utcnow() - self.message.timestamp
|
return datetime.datetime.utcnow() - self.message.created_at
|
||||||
else:
|
else:
|
||||||
return self.ended_timestamp - self.message.timestamp
|
return self.ended_timestamp - self.message.created_at
|
||||||
|
|
||||||
class GroupCall:
|
class GroupCall:
|
||||||
"""Represents the actual group call from Discord.
|
"""Represents the actual group call from Discord.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user