common / me.schlaubi.regnumutils.command.event / CommandFailEvent

CommandFailEvent

open class CommandFailEvent : GenericCommandContextEvent

Event that gets executed whenever a command fails.

Constructors

<init>

CommandFailEvent(api: JDA, responseNumber: Long, guild: Guild, context: Context, throwable: Throwable)

Constructs an CommandFailEvent.

Functions

getThrowable

open fun getThrowable(): Throwable

Returns the error that caused the execution to fail.

Inherited Functions

getContext

open fun getContext(): Context

Returns the Context of the executed command.