Skip to main content
Version: Next

CommandKitModalBuilderInteractionCollectorDispatch

CommandKitModalBuilderInteractionCollectorDispatch

The handler to run when a modal is submitted. 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: ModalSubmitInteraction, context: ModalKit ) => Awaitable<void>

  • Source