From b1cc2cd55107e30aefea941699b9706ccc601e68 Mon Sep 17 00:00:00 2001 From: phixxy Date: Fri, 21 Jul 2023 23:25:55 -0700 Subject: [PATCH] May have fixed discord resume aiohttp issue --- sparkytron3000.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sparkytron3000.py b/sparkytron3000.py index 53afae1..7dce4d2 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -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)