Why are my Discord bot slash commands not showing?
Slash commands only appear once your bot registers them with Discord. Check these in order.
1. The invite included the applications.commands scope. If not, generate a new invite link in the Developer Portal with both bot and applications.commands, and open it again. You do not need to kick the bot first.
2. Your code registers the commands. In discord.js you deploy them with the REST API or client.application.commands.set; in discord.py you call await bot.tree.sync() once after defining them.
3. Guild or global. Commands registered to one server appear straight away. Global commands can take a while to show everywhere, so register to a test server while you build.
4. Discord client cache. Fully restart Discord (or press Ctrl+R on desktop) to refresh the command list.
If the Console shows an error while registering, it usually names the problem, such as a missing permission or an invalid command name (names must be lowercase).
Didn't fix it? Ask in Discord.
Ask in our Discord - we help with hosting questions whether or not you host with us.
Related articles
- How do I deploy a discord.js bot?
Game Setup Guides
- How do I deploy a discord.py bot?
Game Setup Guides