Compare commits

..

2 Commits

Author SHA1 Message Date
57d5dc0c42 Merge pull request 'lol' (#8) from Rainnny/Bat:master into master
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 59s
Reviewed-on: #8
2024-07-04 13:02:29 +00:00
ee1b2e0ae0 lol 2024-07-04 09:01:56 -04:00

@ -95,7 +95,7 @@ public class CommandService extends ListenerAdapter {
// Unregister all commands that Discord has but we don't
jda.retrieveCommands().complete().forEach(command -> {
if (commands.containsKey(command.getName())
|| commands.get(command.getName()).getInfo().isBotOwnerOnly()) {
&& commands.get(command.getName()).getInfo().isBotOwnerOnly()) {
jda.deleteCommandById(command.getId()).complete(); // Unregister the command on Discord
log.info("Unregistered hidden command \"{}\" from Discord", command.getName());
return;