mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
Minor fix
This commit is contained in:
@@ -189,7 +189,7 @@ class User(DiscordModelsBase):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
try:
|
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:
|
except KeyError:
|
||||||
raise exceptions.Unauthorized
|
raise exceptions.Unauthorized
|
||||||
return await self._bot_request(f"/guilds/{guild_id}/members/{self.id}", method="PUT", json=data) or dict()
|
return await self._bot_request(f"/guilds/{guild_id}/members/{self.id}", method="PUT", json=data) or dict()
|
||||||
|
|||||||
Reference in New Issue
Block a user