message Command
fun messageCommand(name: String, scope: CommandScope = defaultScope, function: KFunction<Any>, builder: MessageCommandBuilder.() -> Unit)(source)
Declares the supplied function as a message context command.
The targeted function must have a GlobalMessageEvent or a GuildMessageEvent, with the only accepted option being Message, which will be the targeted message.
See the Discord docs for more details.
Requirement: The declaring class must be annotated with @Command.