Skip to content

Commit

Permalink
Changed rest action from queue to complete for registering commands i…
Browse files Browse the repository at this point in the history
…n attempt to fix command not registering bug
  • Loading branch information
Stephen committed Oct 31, 2023
1 parent 83ab469 commit 75c8aed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>gg.flyte</groupId>
<artifactId>Neptune</artifactId>
<version>2.3</version>
<version>2.4</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/gg/flyte/neptune/command/CommandDispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ private void unregisterCommands() {

commandManager.addCommand(command.name(), mapping);

if (guilds.isEmpty()) jda.upsertCommand(commandData).queue();
else for (Guild guild : guilds) guild.upsertCommand(commandData).queue();
if (guilds.isEmpty()) jda.upsertCommand(commandData).complete();
else for (Guild guild : guilds) guild.upsertCommand(commandData).complete();

return instance;
}
Expand Down

0 comments on commit 75c8aed

Please sign in to comment.