Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions discord/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def duration(self):
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.
Expand Down