🤖
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. Tutorials
  2. Discord Getting Started Guide

Creating simple chat command

PreviousAuto Message AutomationNextSending a welcome message to new members

Last updated 9 months ago

Was this helpful?

Video tutorial is available:

Start by creating a new automation. Select Chat Command as trigger.

  • Optionally select your Guild / Server (if you don't select it, the command will be available to all guilds that contain your bot). Please note that if you don't select a guild, the command could take up to an hour to become available to everyone (that is due to the way Discord synchronizes commands)

  • Enter name of the command (this is what you will be using in Discord when you type /command-name)

  • Enter a Description (this is shown in Discord when selecting the command)

  • Select Permissions that will be required to use the command (the command is available to everyone if no permissions are selected). You can also limit access to only Administrators and later assign roles to the command (you can only do this from within Server Settings in Discord - go to Server settings -> Integrations -> Bot name -> Commands)

Now we can send a reply whenever someone uses this command. Click on + to add a step and select Reply to interaction. When a user uses the command we call that an interaction.

Select Trigger > Interaction as Interaction.

Ephemeral messages are only shown to the user that used the command. If you select No, the reply is seen by everyone that can access the channel where the user used the command.

Enter some text into the Content field and click Create button to create the automation.