May have fixed discord resume aiohttp issue
This commit is contained in:
parent
9de7ac9ba2
commit
b1cc2cd551
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue