Slash Commands

Learn how to handle your bot's slash commands!

More info: Slash

Creating Slash Commands

This code creates a new slash command named 'say' which includes a string option called 'text'.

Receiving Slash Commands

Upon receiving the slash command, the bot will reply to the interaction with the provided option 'text', repeating the specified text string.


FAQ

What is a sub-command?

Subcommands organize your commands by specifying actions within a slash command. ex: /role add/edit/delete

What are slash options?

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

How to delete slash commands?

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

What are ephemeral interaction replies?

Input to Ephemeral field TRUE - visible only to the author, FALSE - Visible to anyone.

Example of an interaction reply visible only to the author

Last updated

Was this helpful?