CommandPermissionViolationEvent(@Nonnull api: JDA, responseNumber: Long, @Nonnull guild: Guild, @Nonnull command: Command)
Constructs an CommandPermissionViolationEvent
.
api
- JDA: the JDA
instance
responseNumber
- Long: the response number
guild
- Guild: the Guild
on which the command failed
command
- Command: the Command
which has thrown the permission error