- Enable the bot in the Developer Portal and copy CLIENT_ID, GUILD_ID, TOKEN.
- Put them in .env (never commit).
- Run your register script against the guild routes.
- Invite with applications.commands scope using the permissions calculator.
- When stable, register global commands and remove guild duplicates.
Tutorial
Register Discord guild slash commands for fast iteration
Global commands can take time to propagate. Guild commands update quickly.