The JDA version we were using is outdated and no longer works properly. This PR resolves that.
Update to JDA 4.2.0
Use the new Gateway Intents to tell Discord what permissions we want
Disable caching (we don't use cached data, improves memory footprint)
Add support for sharding. Discord will decide how many shards are required.
I believe that we can also easily add a second instance of the bot, and Discord should deal with the shard management. However, that's worth looking into before trying it in production.
The JDA version we were using is outdated and no longer works properly. This PR resolves that.
I believe that we can also easily add a second instance of the bot, and Discord should deal with the shard management. However, that's worth looking into before trying it in production.