diff options
| author | Bryan Forbes <[email protected]> | 2018-08-25 14:44:10 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-08-28 23:50:54 -0400 |
| commit | b3bfec91196b2cb51abb8ec20534979976a53daf (patch) | |
| tree | 37f059bea221bbaf6236727f9d348e8e2df0d3cc | |
| parent | Finished index.po translation. (diff) | |
| download | discord.py-b3bfec91196b2cb51abb8ec20534979976a53daf.tar.xz discord.py-b3bfec91196b2cb51abb8ec20534979976a53daf.zip | |
Fix CallMessage.duration calculation
| -rw-r--r-- | discord/calls.py | 4 |
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. |