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

CommandPermissionViolationEvent

open class CommandPermissionViolationEvent : GenericCommandEvent

Event that is getting fired whenever someone tries to execute a command without having the needed permissions.

Constructors

<init>

CommandPermissionViolationEvent(api: JDA, responseNumber: Long, guild: Guild, command: Command)

Constructs an CommandPermissionViolationEvent.

Functions

getPermissions

open fun getPermissions(): Permissions

Returns the missing permissions.