What Are Discord Slash Commands and How Do You Use Them?
Discord slash commands are built-in bot commands that start with a forward slash (/). You type /, pick a command from the menu Discord shows you, fill in the options it prompts for, and press Enter. They replaced the old "type a prefix like ! and hope you remember the syntax" approach, and they work the same way in every server.
If you've ever typed /giveaway or /ban and watched Discord pop up a little menu with the exact options you needed, you've already used slash commands. This guide explains what they actually are under the hood, why they exist, how to find and use them in any server, and why they're safer for server owners than the old way bots worked.
What a slash command actually is
A slash command is a command that a bot registers directly with Discord. Instead of the bot silently reading every message in your server and watching for a magic word, the bot tells Discord in advance: "here are my commands, here's what each one is called, and here are the options each one accepts."
Discord then handles the rest. When you type / in a chat box, Discord shows you a list of every command available in that server, grouped by bot, with a short description of each. Pick one, and Discord guides you through the options: a dropdown for a channel, a date picker for a time, a number field for a duration, an autocomplete list for a role. You're not memorizing syntax. You're filling in a form.
That's the core idea. A slash command is a structured, self-documenting command that Discord itself presents and validates before the bot ever sees it.
The parts of a slash command
Most slash commands have three pieces:
- The command name — the part right after the slash, like
/warnor/poll. - Subcommands (optional) — a second word that picks a mode, like
/ticket closeor/role add. This keeps related actions grouped under one command. - Options — the inputs, like a user to warn, a reason, a duration, or a channel. Discord labels each option and tells you which ones are required.
So /giveaway start prize: "Nitro" winners: 1 duration: 24h reads almost like plain English, and Discord builds that line for you field by field.
How slash commands replaced old prefix commands
Before slash commands existed, bots used prefix commands. You'd configure a prefix (often !, ?, -, or $) and type things like !ban @user spamming or !rank. The bot read every message in the server, checked whether it started with the prefix, and tried to parse the rest.
This worked, but it had real problems:
- You had to memorize everything. There was no menu. If you forgot whether it was
!muteor!timeout, or whether the reason came before or after the duration, you guessed. - Prefixes collided. Run three bots that all use
!, and a command meant for one could trigger another, or just fail silently. - Typos failed quietly. Misspell a prefix command and nothing happened, with no hint as to why.
- The bot read all your messages. To catch the prefix, the bot needed to see every single message — more on why that matters below.
Discord introduced slash commands to fix all of this. They're now the official, recommended way for bots to expose commands, and Discord actively pushed the ecosystem toward them. Most modern bots, including PeakBot, run entirely on slash commands. If you want to build your own, our guide to Discord custom commands in 2026 walks through creating slash commands without writing code.
How to find and use slash commands in any server
You don't need to install anything or read documentation. The discovery is built into Discord.
Step 1: Click into any text channel
Slash commands run from the message box, the same place you type normal messages. Pick a channel where you have permission to talk.
Step 2: Type a single forward slash
Type / and stop. Discord immediately opens a panel above your message box listing every command available in that server. Each bot's commands appear under its name and icon, so you can tell at a glance which bot does what.
Step 3: Pick a command or keep typing to filter
Scroll the list, or keep typing to narrow it. Typing /gi filters down to commands like /giveaway. Click the one you want, or use the arrow keys and Tab.
Step 4: Fill in the options Discord shows you
Once you select a command, Discord highlights the options it needs. Required options are marked, and Discord won't let you send until they're filled. Channel options give you a channel picker. User options let you @-mention. Time and number options give you the right input type. You can't really get the syntax "wrong" because Discord is building it for you.
Step 5: Press Enter
Send it like a normal message. The command runs, and most bots reply with an embed confirming what happened — or with an "only you can see this" ephemeral message if it's something private like your own stats.
That's the whole flow, and it's identical across every server and every bot. Learn it once and you can use any bot you join.
Why slash commands are safer for server owners
This is the part most guides skip, and it's the most important reason slash commands matter if you run a server.
Old prefix bots needed the Message Content intent — permission to read the full text of every message posted in your server. They had to, because the only way to catch !command was to read all messages and check each one. That means a prefix bot could, in principle, see everything anyone typed.
Slash commands don't need that. When you run a slash command, Discord sends the bot only that one command and its options — not your other messages. A bot that runs purely on slash commands can do its entire job without ever reading general chat. Less access to your members' messages is simply safer, and it's a meaningful trust signal when you're deciding which bots to add.
There are two more safety wins:
- Per-command permissions. Server owners can control exactly who can use each slash command, right in Discord's Server Settings → Integrations menu. You can lock
/banto moderators and leave/rankopen to everyone, without touching the bot's own settings. - No silent message scanning for commands. Because commands come through Discord's official channel, there's no guessing about what triggered what.
If you're thinking about which bots to trust with your community, this is a real factor. For a broader look at locking down your server, see how to automate your Discord server safely.
Slash commands vs message-content bots
It's worth being fair here: not every job can be done with slash commands alone, and that's by design.
Where slash commands are the clear winner: any action a person triggers on purpose — banning, warning, starting a giveaway, opening a ticket, checking a rank, running a poll. These are discrete commands with clear inputs, and the menu-driven, permission-aware, message-private model fits perfectly.
Where reading messages is still genuinely needed: features that react to what people say, not to a command. Auto-moderation that catches spam or slurs, XP and leveling that rewards activity, starboards that pin popular messages, and logging all need to observe chat. A good bot requests message access only for those features and runs everything else through slash commands.
So the honest framing isn't "slash commands good, message-reading bad." It's that the best bots use slash commands for every deliberate action and reserve message access for the few features that truly require it — and they're transparent about which is which.
How PeakBot runs entirely on slash commands
PeakBot is a free, AI-powered Discord bot, and every command a user or moderator runs is a slash command. There's no prefix to configure, no syntax sheet to memorize, and no collision with other bots. You type /, you see PeakBot's commands with descriptions, and Discord walks you through the options.
That covers a lot of ground, because PeakBot replaces MEE6, Carl-bot, Dyno, and TidyCord with one bot, and 30+ of its features are free with no time limit and no trial. A few you'll reach for through slash commands:
- Moderation — warns, mutes, and bans, backed by context-aware AI moderation that reads message intent and adapts per channel instead of matching a fixed keyword blocklist.
- XP and leveling — message and voice XP, leaderboards, and role rewards, with
/rankfor members to check their own progress. - Tickets —
/ticket-driven support with categories and transcripts. - Giveaways, polls, reaction roles, starboard, and invite tracking — all run through clean, menu-guided commands.
Where PeakBot does need to read messages — AI moderation, XP, logging — it's for exactly the features that can't work any other way, and the deliberate actions all stay on slash commands. PeakBot is also one of the easiest Discord bots to set up precisely because there's nothing to memorize: the commands document themselves.
PeakBot is free to start, with Pro at $8.25/month per server (or $69/year) unlocking extras like the AI Server Builder, which generates a complete server — channels, roles, categories, permissions, automations — from a plain-English description in under 60 seconds. It currently powers 500+ Discord communities. You can compare it against the bots it replaces on the comparison page.
FAQ: slash command basics
What does the slash symbol do in Discord?
Typing / in any message box opens Discord's command menu, listing every slash command available in that server, grouped by bot. It's the starting point for running any bot command — type /, pick a command, fill in the options, and press Enter.
Why don't I see any slash commands when I type a slash?
Usually it means no bot in that server has registered commands, or you don't have permission to use the ones that exist. Server owners can grant or restrict slash-command access per command under Server Settings → Integrations, so an admin may have locked certain commands to specific roles.
Are slash commands safer than old prefix commands?
Generally yes. Slash commands don't require a bot to read every message in your server — Discord sends the bot only the command you ran and its options. They also support per-command permissions managed inside Discord, so owners control exactly who can use what.
Do all Discord bots use slash commands now?
Most modern bots do, and Discord recommends them as the standard. Some older bots still use prefix commands, and many bots use both — slash commands for deliberate actions and message access only for features like auto-moderation or XP that must observe chat. PeakBot runs every command as a slash command.
Can I make my own custom slash commands?
Yes. Many bots let you create custom slash commands without any coding — you name the command, write the response, and the bot registers it with Discord for you. Our custom commands guide covers how to set them up step by step.
Where do slash commands work — DMs or servers?
Most slash commands are registered to servers and only appear inside those servers' channels. A bot can also offer commands in direct messages, but server-specific features like moderation and leveling only work where the bot has been added.
