mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-29 16:09:05 +00:00
Fix CallMessage.duration calculation
This commit is contained in:
1 parent
427d0aae86
commit
b3bfec9119
1 file changed
+2
-2
+2
-2
@@ -74,9 +74,9 @@ class CallMessage:
|
||||
The timedelta object representing the duration.
|
||||
"""
|
||||
if self.ended_timestamp is None:
|
||||
return datetime.datetime.utcnow() - self.message.timestamp
|
||||
return datetime.datetime.utcnow() - self.message.created_at
|
||||
else:
|
||||
return self.ended_timestamp - self.message.timestamp
|
||||
return self.ended_timestamp - self.message.created_at
|
||||
|
||||
class GroupCall:
|
||||
"""Represents the actual group call from Discord.
|
||||
|
||||
Reference in new issue
Block a user