Skip to main content

You are looking at documentation for CommandKit version 0.1.10 which is no longer actively maintained. We highly recommend you to upgrade to CommandKit v1.

Version: 0.1.10

CommandKitButtonBuilderInteractionCollectorDispatch

CommandKitButtonBuilderInteractionCollectorDispatch

The handler to run when a button is clicked. This handler is called with the interaction as the first argument. If the first argument is null, it means that the interaction collector has been destroyed.

  • Type: ( interaction: ButtonInteraction ) => Awaitable<void>

  • Source