Closed yukukotani closed 7 years ago
Sorry, i added some debug code. discordbot.role.RoleRankings.fixRoles(RoleRankings.java:172) -> discordbot.role.RoleRankings.fixRoles(RoleRankings.java:170)
I'm trying to reproduce it, started with empty database + new bot with no guilds added 1 guild but I don't get that error. Do you have the latest version? And how did you get the error?
edit: nevermind I got it!
Can you try again with eee9ac56aecba1100c42f09afcf23cc86ad7408a (or later) I think the issue was if a the bot joined a guild when the bot was offline, the bot didn't get the GuildJoinEvent which registered the guild, now it checks in GuildSettings if the guild exists too.
An error is occurred when launching. I think GuildSettings.settings is empty. GuildSettings.id is 0 and guilds table is also empty.
`[05:04:26] [Fatal] [JDA]: One of the EventListeners had an uncaught exception [05:04:26] [Fatal] [JDA]: Encountered an exception: