Build chat bots with blocks

🗣️ reply to interaction with modal titled (title) with fields (fields) do (do)

In Discord → Interactions → Modals

Jump to block

Send a modal to the user in response to an interaction.


Parameter name Parameter type Required? Description
title String The title of the modal.
fields Array OR modal_field The fields to add to the modal.
do statements… The statements to run when the modal is submitted. These statements are never guaranteed to run; Discord does not notify bots when modals are closed without submitting.


void - This is a statement with no outputs