[Bug]: Server crashing after changing config.
choombdev opened this issue ยท 6 comments
What happened?
Server crashes whenever I modify the config.
Game Version
1.16
What platform are you using?
Forge
Platform version
36.2.9
Config File
https://paste.gg/p/YTGF/1fa26d7414ee4c99ac7ce6e4c03e652a
Crash report / Error log (if applicable)
https://paste.gg/p/YTGF/673ce6c40ca5406898a55bbc09ebe13c
Additional Information
No response
Okay, the server starts normally and doesn't crash if i remove a couple of dots from the bot token but it doesn't start up the bot, obviously.
I'll try regenerating a new token.
The same error is happening to me in version 1.16.5 (forge 36.2.19). I will use version 2.1.1 while the bug is not fixed.
I was struggling with this as well for a hot minute. Turns out, you may not have granted the proper permissions to your bot. The error stopped after I gave my bot administrator (tested on 2.3.5.)
CommandRegistry is only accessible by JDA being given the proper permissions. Without them, CommandRegistry is null. Therefore there's not much, if anything, to change in this mod's code to "fix" it. Perhaps a proper warning about what permissions are missing?