This commit is contained in:
parent
f3a1fb41df
commit
79d70c27da
3 changed files with 3 additions and 3 deletions
|
|
@ -6,5 +6,5 @@ import java.util.concurrent.CompletableFuture;
|
|||
|
||||
public interface CommandExecutor<T> {
|
||||
|
||||
CompletableFuture<Void> execute(MessageStyle style, CommandContext<T> ctx);
|
||||
CompletableFuture<?> execute(MessageStyle style, CommandContext<T> ctx);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public interface SyncCommandExecutor<T> extends CommandExecutor<T> {
|
|||
|
||||
void executeSync(MessageStyle style, CommandContext<T> ctx);
|
||||
|
||||
default CompletableFuture<Void> execute(MessageStyle style, CommandContext<T> ctx) {
|
||||
default CompletableFuture<?> execute(MessageStyle style, CommandContext<T> ctx) {
|
||||
this.executeSync(style, ctx);
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue