Skip to content

Commit 959c3b3

Browse files
author
kaleidox
committed
allow returning RestAction as command response
1 parent 660965b commit 959c3b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/comroid/commands/impl/discord/JdaCommandAdapter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ private CompletableFuture<?> handleResponse(JdaCommandAdapter.MessageSender hook
268268
if (embedFinalizer != null) embed = embedFinalizer.apply(embed, user);
269269
yield hook.send(embed.build());
270270
}
271+
case RestAction<?> action -> action.submit();
271272
default -> hook.send(String.valueOf(response));
272273
});
273274
}

0 commit comments

Comments
 (0)