DiscordIntegration-Forge icon indicating copy to clipboard operation
DiscordIntegration-Forge copied to clipboard

[Bug]: Server crashing after changing config.

Open choombdev opened this issue 3 years ago • 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

choombdev avatar Nov 16 '21 11:11 choombdev

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.

choombdev avatar Nov 16 '21 11:11 choombdev

Issue returned once the token was changed again.

choombdev avatar Nov 16 '21 11:11 choombdev

Downgrading to 2.1.1 fixes it.

choombdev avatar Nov 25 '21 21:11 choombdev

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.

Seikm avatar Dec 02 '21 13:12 Seikm

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?

padlocks avatar Dec 14 '21 02:12 padlocks

I will add more precise error messages in next update for thoose cases

ErdbeerbaerLP avatar Dec 27 '21 12:12 ErdbeerbaerLP