Skip to main content
Version: Next

ButtonKitPredicate

ButtonKitPredicate

The predicate function that filters button interactions. It receives a ButtonInteraction and returns a boolean or a Promise that resolves to a boolean.

Signature
type ButtonKitPredicate = (
interaction: ButtonInteraction,
) => Awaitable<boolean>