| Name | discordmodal |
| Related Guide Page | https://guide.denizenscript.com/guides/expanding/ddiscordbot.html |
| Syntax | discordmodal [interaction:<interaction>] [name:<name>] [rows:<rows>] (title:<title>) |
| Short Description | Manages Discord modals. |
| Full Description | With this command you can respond to an interaction using a modal.
A "modal" is a popup window that presents the user with a form to fill out. You can specify the modal's internal name for matching with in events. You can specify the title as text to display to the user. You can specify rows of user-inputs using DiscordTextInputTag. At time of writing, Selection input is not supported. You can listen to the responses to forms using discord modal submitted. You cannot defer an interaction before using a modal. It must be sent immediately. Note that the interaction can be any button or application command, but cannot be a modal submission - you cannot reply to a modal submit with a second modal. The command can be ~waited for. See ~waitable. |
| Related Tags | None
|
| Usage Example | |
| Group | external |
| Requires | dDiscordBot |
| Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/commands/DiscordModalCommand.java#L32 |