Skip to content

Commit 553cfa2

Browse files
committed
Fix default afk value in change_presence()
1 parent 0847b02 commit 553cfa2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

discord/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,9 @@ async def change_presence(
17411741
if status is Status.offline:
17421742
status = Status.invisible
17431743

1744+
if afk is MISSING:
1745+
afk = self.ws.afk if self.ws else False
1746+
17441747
if idle_since is MISSING:
17451748
since = self.ws.idle_since if self.ws else 0
17461749
else:

0 commit comments

Comments
 (0)