Compare commits
No commits in common. "57d5dc0c4244537dda36264bcd2b01c8f57b8c46" and "65af4c8c16986848bc37d66176442ac223cd3553" have entirely different histories.
57d5dc0c42
...
65af4c8c16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user