🤖
FlexyBot
🤖
FlexyBot
  • General
    • Creating Discord Bot
    • Applications
    • Automations
    • Connections
    • Useful links
    • Variables
  • Modules
    • Discord
      • Triggers
        • Member Joined
        • Member Removed
        • Guild Message Created
        • Direct Message Created
        • Guild Message Reaction Added
        • Guild Message Reaction Removed
        • Message Button Clicked
        • Guild Message Deleted
        • Member Joined Voice Channel
        • Member Left Voice Channel
        • Member Deafened
        • Member Undeafened
        • User Command
        • Message Command
        • Chat Command
        • Event Created
        • Event Deleted
        • Event Interest Added
        • Event Interest Removed
        • Thread Message Created
        • Post Message Created
      • Steps
        • Conditions
          • User Has Role
          • User Does Not Have Role
        • Get Custom Emojis
        • Reply to Interaction
        • Set Presence
        • Show Modal
        • Get Emoji
        • Get Direct Message Channel
        • Get User
        • Ban Member
        • Change Member Nickname
        • Get Members by Name
        • Get Members With Roles
        • Get Member
        • Kick Member
        • Timeout Member
        • Get All Members
        • Get Members By Status
        • Add Reaction
        • Delete Message
        • Delete Messages
        • Get Message History
        • Pin Message
        • Remove Message Reaction
        • Reply to Message
        • Send Message
        • Send Typing
        • Send Direct Message
        • Unpin Message
        • Get Message
        • Wait For Button Interaction
        • Wait For Select Menu Interaction
        • Create Category
        • Create Announcement Channel
        • Create Forum Channel
        • Create Invite
        • Create Stage Channel
        • Create Text Channel
        • Delete Channel
        • Get Channel By Name
        • Make Channel Private
        • Make Channel Public
        • Move Channel
        • Sync Permissions
        • Rename Channel
        • Get Channel Category
        • Create Voice Channel
        • Disconnect Member from Voice
        • Move Voice Member
        • Set Member Deafen
        • Set Member Mute
        • Join Voice Channel
        • Leave Voice Channel
        • Play Audio
        • Verify Audio URL
        • Get Audio Duration
        • Get Connected Members
        • Defer Reply
        • Create Event
        • Close Thread Channel
        • Create Thread Channel
        • Lock Thread Channel
        • Open Thread Channel
        • Unlock Thread Channel
        • Add Roles to Member
        • Create Role
        • Delete Role
        • Get Roles by Name
        • Get Guild Roles
        • Remove Role From Member
        • Get Member Roles
        • Get Default Role
        • Set Channel Member Permission Overrides
        • Set Channel Role Permission Overrides
        • Set Role Permissions
        • Get Member Permissions
        • Create Forum Post
        • Get Guild
        • Get Channel
        • Wait for message reaction
        • Add Thread Member
        • Remove Thread Member
        • Get guilds
        • Leave guild
      • Data Types
        • Guild
        • User
        • Member
        • Message
        • Discord Timestamp
      • Tagging
    • Minecraft
    • FiveM
    • Core
      • Triggers
        • Connection Started
        • Schedule
        • Form
      • Steps
        • Date Calculator
        • Format Date
        • Get Current Date
        • Parse Date
        • Toggle Automation
        • Make Overlay
        • Download Image
        • Nothing
      • Data Types
        • Text
        • Number
        • Integer
        • Boolean
        • Color
        • Date
        • Duration
        • List
        • Object
    • Lists
      • Steps
        • Add Item to List
        • Map List Items
        • Reverse List
        • Filter List Items
        • Randomize List
        • Get List Size
        • Get List Item
    • Text
      • Steps
        • Split Text
        • Get Text Length
        • Get Characters
        • Join Text
        • Slice Text
        • Extract Numbers
    • Scripting
      • Triggers
        • Webhook
        • Function
      • Steps
        • Conditions
          • And
          • Or
          • Equals
          • Does Not Equal
          • Greater Than
          • Greater Than Or Equal
          • Less Than
          • Less Than Or Equal
          • Text Contains
          • Text Does Not Contain
          • List Contains
          • List Does Not Contain
          • List Is Empty
          • List Is Not Empty
          • Is Null
          • Is Not Null
          • Matches Regular Expression
          • Does Not Match Regular Expression
        • Only Continue If
        • If Else
        • Delay
        • For Each Loop
        • While Loop
        • Paths
        • Make HTTP Request
        • Parse JSON
        • Stringify JSON
        • Throw Exception
        • Create Text File
        • Execute Function
        • Stop Automation
        • Switch
        • Try Catch
        • Comment
        • Return
    • Variables
      • Steps
        • Create Custom Variable
        • Update Global Variable
        • Update Custom Variable
        • Create Global Variable
        • Get Global Variable Value
    • Math
      • Steps
        • Round
        • Calculator
        • Get Maximum Value
        • Get Minimum Value
        • Get Random Number
    • Database
      • Steps
        • Create Table
        • Find
        • Find One
        • Insert
        • Find Or Insert
        • Update
        • Delete
    • Reddit
      • Steps
        • Get Posts
    • OpenAI
      • Steps
        • Make Chat Completion
        • Generate Image
        • Text To Speech
        • Speech To Text
        • Create Message
    • Cache
      • Steps
        • Put
        • Get
        • Exists
        • Delete
  • Frequently asked questions (FAQ)
  • Tutorials
    • Discord Getting Started Guide
      • Connections
      • Auto Message Automation
      • Creating simple chat command
      • Sending a welcome message to new members
  • Public bot features
    • Member counter
Powered by GitBook
On this page

Was this helpful?

  1. Modules
  2. Discord
  3. Steps

Show Modal

Introduction

This step displays a modal with a single input field as a response to a user interaction in Discord, such as a command or button press.

Description

Useful for collecting a short text or a paragraph from users within a modal dialog box.

Configuration

  1. Interaction: The interaction that triggers the modal. Modals can only be displayed in response to an interaction. This is required.

  2. Title: Set the title of the modal. Length must be between 1 and 45 characters. Required.

  3. Input: Define the input field. It includes:

    • Style: Choose between "Short" for a single-line input or "Paragraph" for a multi-line text area.

    • Label: The label for the input field. Length must be between 1 and 45 characters. Required.

    • Placeholder: (Optional) A placeholder text in the input field. Maximum 100 characters.

    • Minimum Length: (Optional) The minimum number of characters required. Up to 4000.

    • Maximum Length: (Optional) The maximum number of characters allowed. Up to 4000.

  4. Timeout: Set how long to wait for user input before timing out. Range is 5000 milliseconds to 15 minutes. This dictates how long the modal waits for user interaction before continuing or stopping the automation.

  5. Fail on Timeout: Choose whether the automation should stop if the step times out. If enabled, the automation stops on timeout; if disabled, it continues without the interaction and input value.

Outputs

  • Interaction: The modal interaction object. Null in case of a timeout.

  • Input value: The user's input in the modal. Null in case of a timeout.

  • Timeout: Indicates whether a timeout occurred.

Usage

Ideal for scenarios requiring user input, such as gathering feedback, asking questions, or collecting data in an interactive format.

Permissions

  • No specific permissions are required for this step.

PreviousSet PresenceNextGet Emoji

Last updated 9 months ago

Was this helpful?