mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 18:24:15 +02:00
Await the coro
This commit is contained in:
@@ -138,7 +138,7 @@ class DiscordOAuth2HttpClient(abc.ABC):
|
|||||||
"""
|
"""
|
||||||
route = configs.DISCORD_API_BASE_URL + route
|
route = configs.DISCORD_API_BASE_URL + route
|
||||||
discord = await self._make_session()
|
discord = await self._make_session()
|
||||||
async with (discord.request(
|
async with (await discord.request(
|
||||||
method, route, data, **kwargs
|
method, route, data, **kwargs
|
||||||
) if oauth else aiohttp.request(method, route, data=data, **kwargs)) as response:
|
) if oauth else aiohttp.request(method, route, data=data, **kwargs)) as response:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user