[commands] Add idle command (#5555)

This commit is contained in:
Shai Grossman
2023-08-29 23:00:40 +03:00
committed by GitHub
parent 67043a8eeb
commit 52297ffe29
3 changed files with 21 additions and 0 deletions

View File

@@ -25,6 +25,15 @@ public final class Commands {
return new InstantCommand();
}
/**
* Constructs a command that does nothing until interrupted.
*
* @return the command
*/
public static Command idle() {
return run(() -> {});
}
// Action Commands
/**