findMessageCommand

abstract fun findMessageCommand(guild: Guild?, name: String): MessageCommandInfo?(source)

Returns the MessageCommandInfo with the specified name, if it is published in that scope, either in the guild, or globally.

Parameters

guild

The guild from which to get the commands, can be null for global commands

name

Name of the message context command