I've noticed the bot's CPU spiking for a few minutes as it's just connecting, and a lot of shard connections are timing out. I suspect it might be the overload of messages as the shards connect and Discord sends it the entire backlog at once. So, as an interim solution, I'm making it simply discard every message before the socket is fully connected. Hopefully this should help reduce the pressure.
19 KiB
19 KiB