Skip to content

Discord slash command builder

Make slash commands and events for your own bot by connecting blocks.

Choose what members type and drag in blocks for what the bot should do, all without writing code. When you save, BotGhost puts it in Discord as a real slash command (the kind that pops up when you type /) and hosts the bot for you. If you haven't made a bot yet, start with how to make a Discord bot without coding.

The free plan gives you 3 custom commands and 3 custom events without paying anything.

#giveaways
You used /giveaway prize: Nitro Classic
BotGhost Community APP Today at 18:02
Giveaway: Nitro ClassicPress Enter below to join. One entry each. Ends in 1 day.Hosted by @You
Enter
BOTGHOST COMMUNITY
/giveawayStart a giveaway, one entry each
/dailyClaim your daily coins
/banBan a member and log it
/rankSee your level and XP
/

How to add custom commands to your Discord server

Discord has no custom command setting of its own, so a bot runs them. You can add real slash commands without code by making your own bot with a no-code builder like this one, or use a public bot's custom commands, or code a bot yourself.

QuestionYour own bot, built with BotGhostA public bot's custom commandsCode your own bot
Command styleReal slash commands with optionsMostly text replies to a prefix like !infoReal slash commands
What a command can doLogic, variables, buttons, menus, forms, rolesUsually a set reply, sometimes a roleAnything you can code
Name and avatarYour own botThe public bot'sYour own bot
Setting it upMake the bot on Discord once, then blocksInvite it and type the replyWrite, register, and run code
HostingDone for youDone for youYour computer or a server you pay for
Cost3 commands free, unlimited on PremiumFree, some limits behind a paid planFree code, hosting usually costs

A public bot is quickest for a one line reply. Code gives you everything, if you can write and host it. A builder sits between them: real slash commands with options, buttons, and logic under your own bot's name, set up in a few minutes. The first time, you make the bot's account in Discord's Developer Portal and paste its token, which the no-code bot guide walks through.

Updated 20 November 2026.

How the Discord bot command builder works

A command is a set of blocks joined by lines. It starts at the yellow block (that's where the name goes) and runs down the lines one block at a time. You've got over 100 blocks to pick from, and each one is one of three colours.

The Command Builder with the /giveaway command: the block list on the left, and Send or Edit a Message, Wait, and If / Else blocks connected on the canvas

Options

The bits a member fills in after the command name, like a prize, someone to warn, or a picture. There are seven kinds: Text, Number, User, Channel, Role, Choice, and Attachment.

Actions

What your bot does, from the top of the command down. You'll use Send or Edit a Message and Add Roles the most, but there's Ban a Member, Set Variable, and loads more.

Conditions

Where a command splits. If / Else is the big one. Role Condition, Permissions Condition, and Chance Condition (a dice roll) handle most of the rest.

Slash command options, buttons, menus, and forms

Options are what members type after the command name. In /giveaway prize: Nitro Classic, the prize is an option, and whatever someone puts there can be used by any block further down.

  • Send or Edit a Message can put buttons and select menus on a reply. Every button gets its own blocks, so Enter can do one thing and Leave another.
  • Send a Form pops up a form (like the Report one here) and waits till they've filled it in.
  • Subcommands: call a command economy daily and Discord shows it as /economy daily. You can fit 25 under one name.
  • Right-click ones too: User and Message commands show up in Discord's Apps menu. And you can make commands that work in DMs.
About the message builder
#support
BotGhost Community APP Today at 09:30
Report a memberSaw someone breaking the rules? Press Report and tell the staff team.
Report
Report a member
WHO ARE YOU REPORTING?@Spammer
WHAT HAPPENED?Posting invite links in #general
CancelSubmit

If / Else logic, variables, and permissions with no code

A command can check who ran it and remember a number for next time, then pick what happens based on both. You set all of that up with blocks and settings.

If / Else and conditions

Check whether the member has the Mod role or compare two numbers, then send a yes down one path and a no down the other. Chance Condition rolls a random pick instead.

Every condition

Variables

Your bot remembers things in variables, like someone's coins or how many warnings they've had. Set Variable and Run Equation on Variable save it per member, per channel, or for the whole server, in Data Storage.

About Data Storage

Who can use it

Lock a command to certain roles, or keep some roles and channels out of it. You can require a permission and add a cooldown (per member or per server). Replies can be hidden too, so only the person who ran it sees them.

Command settings

Playbacks

Open a Playback to replay a run on the canvas one block at a time. If a block failed, the Playback gives the reason in plain words.

About Playbacks

Discord bot events

Events run without anyone typing them. When someone joins or boosts the server, the event fires and your blocks run. They use the same blocks as commands, and there are over 100 events to choose from.

Members join or leaveMessagesReactionsVoice channelsRolesChannels and threadsBoostsInvitesPollsScheduled eventsMusicThe bot starting

Timed events run on a schedule (say, a reminder every Monday at noon) or every few minutes. Our own Tickets, Welcomer, and Counting modules are made of these exact events, so you can open one up and change any block you like.

#welcome
You joined the server.
BotGhost Community APP Today at 21:47
Welcome to the server, @You. You are member #1,204.
Read the rulesPick your roles
The Event Builder with a Member Joined event split into paths for bots, returning members, and everyone else, with Make an Image Card and Send or Edit a Message blocks

Free slash commands and events, and what Premium adds

Free bots get 3 custom commands and 3 custom events, in up to 5 servers. Premium removes those limits.

You can also start from someone else's work: grab a pack from the BotGhost Marketplace, or paste a share code someone gave you to get a copy of their command or event, then change whatever you want. With BotPanel's server dashboards, each server can also turn your commands off or keep them to some roles and channels.

Compare the plans
LimitFreePremium
Custom commands3Unlimited
Custom events3Unlimited
Servers5Unlimited
Values in Data Storage5,00050,000
Online when nobody uses itSwitches off after 2 days without activityStays on

Command builder questions

The docs cover every block, option, and event. If you're still stuck, ask us in the BotGhost Discord.

Discord has no custom commands of its own, so a bot runs them. To get real slash commands without code, make your own bot with BotGhost and build each command from blocks. A public bot's custom command module is quicker for a simple text reply, and coding a bot gives you everything if you can host it.

Build your first slash command

Make your bot, press New command, and join up a few blocks. It's free, and there's no card to enter.

Build a command for free