open class CommandFailEvent : GenericCommandContextEvent
Event that gets executed whenever a command fails.
CommandFailEvent(api: JDA, responseNumber: Long, guild: Guild, context: Context, throwable: Throwable)
Constructs an |
open fun getThrowable(): Throwable
Returns the error that caused the execution to fail. |
open fun getContext(): Context
Returns the Context of the executed command. |