user Command
fun userCommand(name: String, scope: CommandScope = defaultScope, function: KFunction<Any>, builder: UserCommandBuilder.() -> Unit)(source)
Declares the supplied function as a user context command.
The targeted function must have a GlobalUserEvent or a GuildUserEvent, with the only accepted options being Member, User and InputUser, which will be the targeted entity.
See the Discord docs for more details.
Requirement: The declaring class must be annotated with @Command.
See also
Global User Event. getTarget
Global User Event. get Target Member
@Command
@JDAUserCommand