Await the coro

This commit is contained in:
thec0sm0s
2020-09-30 13:30:09 +05:30
parent bc15de5119
commit 48a119e45a

View File

@@ -138,7 +138,7 @@ class DiscordOAuth2HttpClient(abc.ABC):
"""
route = configs.DISCORD_API_BASE_URL + route
discord = await self._make_session()
async with (discord.request(
async with (await discord.request(
method, route, data, **kwargs
) if oauth else aiohttp.request(method, route, data=data, **kwargs)) as response: