Skip to content

Commit 0a18fb1

Browse files
committed
fix: Fixed a bug where only one option would register
1 parent 16dcc66 commit 0a18fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/seailz/jdaframework/command/registry/CommandRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void registerCommand(JDA jda, Command command) {
2727
} else {
2828
CommandCreateAction action = jda.upsertCommand(command.getName(), command.getDescription());
2929
command.getOptions().forEach(option -> {
30-
action.addOption(option.getType(), option.getName(), option.getDescription(), option.isRequired()).queue();
30+
action.addOption(option.getType(), option.getName(), option.getDescription(), option.isRequired());
3131
});
3232
action.queue();
3333
}

0 commit comments

Comments
 (0)