GraphMine

graphmine-core / io.github.sof3.graphmine.command / Command / handle

handle

inline fun <reified A : Overload, reified S : CommandSender> handle(crossinline fn: suspend CommandExecutor<A, S, C>.() -> Unit): Unit

Adds a handler to the command.

Type parameters A and S are explicitly specified to filter the overloads and sender types.

If the command does not require any parameters, EmptyOverload can be used.

Parameters

A - the restricted Overload type

S - the restricted CommandSender type

fn - the handler function