Closed BalthasarBH closed 5 months ago
guild
is null. You're probably using jda
when it has empty cache. If you will do jda.awaitReady()
it will block and wait until JDA populates cache. Then jda.getGuildById(id)
wont return null. Also you forgot .queue()
on CommandListUpdateAction
:)
More info: https://docs.jda.wiki/net/dv8tion/jda/api/entities/Guild.html#updateCommands()
General Troubleshooting
Version of JDA
5.0.0-beta.21
Expected Behaviour
Register command for a special guild
Code Example for Reproduction Steps
Code for JDABuilder or DefaultShardManagerBuilder used
Exception or Error