# InstantCommand

An InstantCommand is similar to a BasicCommand in that it simply runs an action once, but unlike a BasicCommand, and InstantCommand runs its action in init rather than execute, making it effectively instant. InstantCommands are useful only for the most basic actions.

new InstantCommand(() -> {
    //Action goes here 
});
InstantCommand {
    //Action goes here
}