check
open fun check(event: GenericCommandInteractionEvent, commandInfo: ApplicationCommandInfo): T?(source)
Returns null
if this filter should allow the command to run, or returns your own object if it can't.
The object will be passed to your ApplicationCommandRejectionHandler if the command is rejected.