ValidationFunction
ValidationFunction
Represents a validation function that can be used to validate interactions. It takes a context object containing the client, interaction, command object, and handler. The function should return a boolean indicating whether the validation passed or void if no validation is needed.
Signature
type ValidationFunction = (
context: ValidationProps,
) => Awaitable<boolean | void>