File tree 1 file changed +2
-1
lines changed
src/main/java/net/clementraynaud/skoice/bot
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 42
42
import net .dv8tion .jda .api .entities .Icon ;
43
43
import net .dv8tion .jda .api .entities .Member ;
44
44
import net .dv8tion .jda .api .entities .channel .concrete .VoiceChannel ;
45
+ import net .dv8tion .jda .api .exceptions .ErrorResponseException ;
45
46
import net .dv8tion .jda .api .exceptions .InvalidTokenException ;
46
47
import net .dv8tion .jda .api .interactions .Interaction ;
47
48
import net .kyori .adventure .text .event .HoverEvent ;
@@ -115,7 +116,7 @@ public void connect(CommandSender sender) {
115
116
this .jda = JDABuilder .createDefault (new String (finalBase64TokenBytes ))
116
117
.addEventListeners (new ReadyListener (this .plugin ))
117
118
.build ();
118
- } catch (InvalidTokenException | IllegalArgumentException e ) {
119
+ } catch (InvalidTokenException | IllegalArgumentException | ErrorResponseException e ) {
119
120
this .plugin .getLogger ().warning (this .plugin .getLang ().getMessage ("logger.error.bot-could-not-connect" ));
120
121
this .plugin .getConfigYamlFile ().remove (ConfigField .TOKEN .toString ());
121
122
if (tokenManager != null ) {
You can’t perform that action at this time.
0 commit comments