#reacing to gracefully shutting down
1 messages · Page 1 of 1 (latest)
since bot.run() is blocking, strictly speaking anything after it should run after running bot.close
alternatively stop using run and handle the loop logic yourself, as demonstrated on the docs https://docs.pycord.dev/en/stable/api.html#discord.Bot.run
note on python 3.10+, you should use asyncio.run instead of loop.run_until_complete