Closed iFran2019 closed 5 months ago
The wait()
method has completely different meaning and I would recommend you to read the documentation for it, it is used for object monitors and not a JDA feature but a Java feature.
For error handling, have a look at ErrorHandler instead. The observed error response code here is ErrorResponse.MISSING_ACCESS
.
General Troubleshooting
Version of JDA
5.0.0-beta.21
Expected Behaviour
When the bot joins a server, it registers the slash commands, and if I kick it before they register on time, it throws an error. I wanted to see if I could handle this with a try-catch, but even if I put a catch (Exception e) {/code/}, it still happens. I'm not sure if it's a bug. Please help.
Code Example for Reproduction Steps
Code for JDABuilder or DefaultShardManagerBuilder used
Exception or Error