Package discord4j.command
Interface Command<T>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Command<T>
Very simple command abstraction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>
execute(discord4j.core.event.domain.message.MessageCreateEvent event, T context)
Called to execute this command.
-
-
-
Method Detail
-
execute
reactor.core.publisher.Mono<Void> execute(discord4j.core.event.domain.message.MessageCreateEvent event, @Nullable T context)
Called to execute this command.- Parameters:
event
- The event that triggered this command's execution.context
- Additional context by this command'sCommandProvider
.- Returns:
- A mono, whose completion signals that this command has been executed.
-
-