Slash Commands
Learn how to handle your bot's slash commands!
Last updated
Was this helpful?
Learn how to handle your bot's slash commands!
Last updated
Was this helpful?
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.
🎉 Congrats! You learned how to create and receive slash commands.
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.