From b6abb903b2e120c47323b036068f02a71723a583 Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Tue, 5 Apr 2022 13:30:31 -0400 Subject: [PATCH] fix: Fix client presence Unix time calculation. --- interactions/api/models/presence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interactions/api/models/presence.py b/interactions/api/models/presence.py index 0f874d34d..8ab7f792a 100644 --- a/interactions/api/models/presence.py +++ b/interactions/api/models/presence.py @@ -209,9 +209,9 @@ def __init__(self, **kwargs): ) if self.activities: self._json["activities"] = [activity._json for activity in self.activities] - if self.status == "idle" and not self._json.get("since"): + if not self._json.get("since"): # If since is not provided by the developer... - self.since = int(time.time() * 1000) + self.since = int(time.time() * 1000) if self.status == "idle" else 0 self._json["since"] = self.since if not self._json.get("afk"): self._json["afk"] = False