Create Custom Discord Slash Commands With an App
Quick answer
Create a slash command through a Discord application, test it in a development guild, and verify each interaction on the server before responding. Keep the application token and interaction verification material secret and grant only the permissions the command needs.
Video walkthrough
If it still does not work
- If the command is missing, verify the application ID, install scope, target guild, and registration environment before creating duplicate applications.
- If interactions time out, verify the endpoint and signature handling on the server. Do not expose a token or disable verification to make a test appear to work.
Sources and verification
Checked against official documentation on . Follow the linked official guidance if labels differ after an update.
- Discord Developer Documentation: Application CommandsDocuments Discord application-command creation, scopes, registration, interaction requirements, and application security boundaries.
