findUserCommand

abstract fun findUserCommand(guild: Guild?, name: String): UserCommandInfo?(source)

Returns the UserCommandInfo 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 user context command