Fix session retirement

This commit is contained in:
Spotlight 2024-10-15 19:03:49 -05:00
parent be2231e174
commit 0f18e9f843
No known key found for this signature in database
GPG Key ID: 874AA355B3209BDC

View File

@ -158,7 +158,7 @@ class APIClient:
# If we encounter 400, we assume that this session has already expired.
# Let's go ahead and reset the session anyway.
if e.response.status_code == 400:
DiscordSession().retire(self.current_user.rpc_session_token)
DiscordSession().retire(self.current_user.refresh_token)
else:
raise e