Skip to content

Commit

Permalink
[Spotify] Missed a cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed May 5, 2024
1 parent 3d1d5bb commit fe24665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify/spotify.py
Expand Up @@ -228,7 +228,7 @@ async def on_oauth_receive(self, user_id: int, payload: dict):
state = payload["state"]
auth = self.temp_cache[int(user_id)]
user_token = await auth.request_token(code=code, state=state)
user = self.bot.get_user(user_id)
user = self.bot.get_user(int(user_id))
if user is None:
return
await self.save_token(user, user_token)
Expand Down

0 comments on commit fe24665

Please sign in to comment.