Intermediate 10 min

Slash & Interaction Controls

Save slash commands and manage interactions (buttons, menus).

#Slash#Interactions#API

Ready to start your service? Check offers and order online.

View offers and order

The slash commands

The slash commands (/commande) are the modern and recommended method of interacting with a Discord bot. They register with the Discord API.

Save Commands

  1. Set your commands (name, description, options)
  2. Save them via the API (globally or by server for a quick test)
  3. Restart the bot; commands appear in Discord

The server recording (guild) is instant; the total record can take up to 1 hour.

Managing interactions

  • Respond quickly (less than 3 s) or differ the answer
  • Manage buttons, menus and modals
  • Check permissions and scope applications.commands invited by

Next steps