How do I write a command with the prefix (?ban @member spam, options in quotes)?

PermissionsPrefixCommands

The command prefix (Pro option) lets you type a command like a message, for example ?ban @member spam, when Discord hides the / command. Here, we assume the prefix is ?.

The general form

?command subcommand value1 value2…

  • A member: mention them (@member).
  • Text with spaces: put it in quotes, for example ?ban @member "repeated insults".
  • A subcommand: write it after the command, for example ?purge links.

Command, subcommand and option names exist in the bot’s four languages; accents are optional.

Messages you may receive

MessageMeaning
(option) is missingA required value was not provided. The bot reminds you of the expected Syntax.
(value) is not valid for (option)The expected type was not respected (a number, for example).
(value) not found for (option)Member, role or channel not found.
Specify a subcommandThis command requires one.
This command opens a form: use /commandIt cannot be run with the prefix.
You don’t have permission…Same rules as with /: see the troubleshooting article.
Same rules as slash The prefix grants no extra rights: the same permissions, disabling, channels and cooldowns apply.

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: Configuration

Last checked: 13 November 2026.