What is the difference between a slash command (/ban) and a prefix command (?ban)?

CommandsBeginner

The same command can sometimes be written in two ways.

The two ways to write it

StyleHow it works
SlashYou type /, Discord shows the list, you click the command and fill in its fields. This is the main method.
PrefixYou write a message starting with a character chosen by the server (for example ?ban). The prefix is set with /permissions prefix and it is a Pro feature.

Step by step

  1. To turn on the prefix See What is the command prefix for?.
When to choose the prefix Useful if your moderators cannot see a slash command because they lack a Discord permission. See the article on hidden commands.

Still stuck?

Contact support with the title of this article, the step where you are stuck and what you see on screen.

Contact support More articles: Overview and server

Last checked: 13 November 2026.