aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/calls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/calls.py b/discord/calls.py
index 44b8f4db..1c35d5ef 100644
--- a/discord/calls.py
+++ b/discord/calls.py
@@ -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.