We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0eb5b commit 1954a04Copy full SHA for 1954a04
interactions/api/models/presence.py
@@ -209,9 +209,9 @@ def __init__(self, **kwargs):
209
)
210
if self.activities:
211
self._json["activities"] = [activity._json for activity in self.activities]
212
- if self.status == "idle" and not self._json.get("since"):
+ if not self._json.get("since"):
213
# If since is not provided by the developer...
214
- self.since = int(time.time() * 1000)
+ self.since = int(time.time() * 1000) if self.status == "idle" else 0
215
self._json["since"] = self.since
216
if not self._json.get("afk"):
217
self._json["afk"] = False
0 commit comments