Minor fix

This commit is contained in:
thec0sm0s
2020-09-30 14:37:04 +05:30
parent 48a119e45a
commit 418fd4dee7

View File

@@ -189,7 +189,7 @@ class User(DiscordModelsBase):
"""
try:
data = {"access_token": await current_app.discord.get_authorization_token()["access_token"]}
data = {"access_token": (await current_app.discord.get_authorization_token())["access_token"]}
except KeyError:
raise exceptions.Unauthorized
return await self._bot_request(f"/guilds/{guild_id}/members/{self.id}", method="PUT", json=data) or dict()