Slash Commands
Learn how to handle your bot's slash commands!
Last updated
Learn how to handle your bot's slash commands!
Last updated
More info: Slash
This code creates a new slash command named 'say' which includes a string option called 'text'.
Upon receiving the slash command, the bot will reply to the interaction with the provided option 'text', repeating the specified text string.
Subcommands organize your commands by specifying actions within a slash command. ex: /role
add/edit/delete
Slash options are used to allow the user to specify additional information for the command. Some options are String, Integer, True/False, Attachments User or Role, Channel
See the block 'Create slash commands' as a "Overwrite global commands". Removing a slash command, the module will ensure that unused commands are deleted
and new ones will be created
Input to Ephemeral field TRUE - visible only to the author, FALSE - Visible to anyone.
Congrats! You learned how to create and receive slash commands.