Slash Command Generator
Build Discord slash commands with a visual editor. Generate ready-to-use code for Discord.js and Discord.py with options, choices, and full type support.
Command Information
Lowercase letters, numbers, hyphens, and underscores only
Command Options
No options yet. Click "Add Option" to get started.
Command Preview
An example slash command
Generated Code
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('example')
.setDescription('An example slash command'),
async execute(interaction) {
// Get option values
// Your command logic here
await interaction.reply({
content: 'Command executed successfully!',
ephemeral: true
});
},
};Features
All Option Types
Support for all Discord option types including strings, numbers, users, channels, and more
Code Export
Generate production-ready code for Discord.js and Discord.py
Choices Support
Add predefined choices for string and number options
How to Use
Define Your Command
Enter your command name and description. Command names must be lowercase and can only contain letters, numbers, hyphens, and underscores.
Add Options
Click "Add Option" to add command parameters. Choose the type (string, number, user, etc.), set whether it's required, and add choices if needed.
Generate and Copy Code
Select your framework (Discord.js or Discord.py) and copy the generated code. The code is ready to paste into your bot project!
Available Option Types
String
Any text input from the user
Integer
Whole numbers only
Boolean
True or false value
User
Select a Discord user
Channel
Select a Discord channel
Role
Select a Discord role
Number
Any number including decimals
Attachment
Upload files and images