graphmine-core / io.github.sof3.graphmine.command / CommandExecutor
class CommandExecutor<A : Overload, S : CommandSender, C : Scope>
The this context of command handlers.
Other modules are encouraged to create extension functions on this class for more convenient handling.
A - the type of overload. Can be any supertype of the actual overload.
S - the type of command sender. Can be any supertype of the actual sender.
C - the scope of the command execution.
| args | val args: Athe parsed overload instance |
| receiver | val receiver: CommandReceiverthe object to send command output into |
| scope | val scope: Cthe scope that owns the command |
| sender | val sender: Sthe sender that sent the command |
| respond | fun respond(message: I18n): UnitResponds to the command sender. A shortcut for receiver.receiveMessage. |
| specialize | fun <SubA : Overload, SubS : CommandSender> specialize(): CommandExecutor<SubA, SubS, C>?Restricts the command executor to its subtypes. |