onPermissionsLackException

open fun onPermissionsLackException(ex: PermissionsLackException)

Executed when an interaction event does not meet the required permissions.

Parameters

ex

The threw exception PermissionsLackException, this exception includes the current SlashCommandContext, the permission target (user, bot) and the required permissions.