🤖
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. Triggers

Chat Command

PreviousMessage CommandNextEvent Created

Last updated 3 months ago

Was this helpful?

Introduction

Activated for specific chat commands, including subcommands.

Configuration

  1. Command: Primary command name (1-32 characters). Do not use slash (/) here.

  2. Subcommand Group: (Optional) Name for a subcommand group. Do not use slash (/) here.

  3. Subcommand: Name for a subcommand. Optional, but required if using Subcommand Group. Do not use slash (/) here.

  4. Description: Description of the command (up to 100 characters).

  5. Permissions: Define permissions required for the command. Aggregated across multiple automations.

  6. Guild Only: For custom bots, restricts command to guild channels.

  7. Options: Set command options (maximum of 25). Each option can include:

    • Name: Option name, following a specific format.

    • Description: Brief description of the option.

    • Type: Type of the option (e.g., string, number, boolean).

    • Constraints: Specific constraints like Maximum length, Minimum length, Maximum value, Minimum value, depending on the type.

    • Choices: For types like number, integer, string, define choices with name and value.

Full command name is assembled from Command, Subcommand Group and Subcommand, like this: /command subcommand-group subcommand. If you leave Subcommand Group empty it looks like this: /command subcommand. If you leave both Subcommand Group and Subcommand empty it looks like this: /command. Options are added after full command name.

Variables

  1. User: User who executed the command.

  2. Channel: Channel where the command was executed.

  3. Interaction: Interaction object from the command execution.

  4. Options: Options that you specify in configuration.

Usage

Creates interactive and dynamic chat commands with customizable subcommands and options.

Troubleshooting

Verify correct configuration of command, subcommands, and options for intended functionality.

There is a global rate limit of 200 application command creates per day, per guild. This limit is imposed by Discord API. Only primary command modifycations count against this limti. If you only modify subcommands, subcommand groups, parameters etc. of a command it will not count against this limit.

Global commands (when guild is left empty) can take up to an hour to propagate to users. You can try restarting your Discord client to try to update the commands for you immediately.