May have fixed discord resume aiohttp issue

This commit is contained in:
phixxy 2023-07-21 23:25:55 -07:00
parent 9de7ac9ba2
commit b1cc2cd551

View file

@ -358,6 +358,10 @@ async def close_session(http_session):
async def on_connect():
bot.http_session = await create_session()
@bot.event
async def on_resumed():
bot.http_session = await create_session()
@bot.event
async def on_disconnect():
await close_session(bot.http_session)