# Commands and prefix

Source: https://righteousbot.dev/docs/getting-started/prefix-and-slash-commands/

Prefix versus slash commands, how to change your server's prefix, and the no-prefix and alias shortcuts.

A prefix command is a normal message (`,help`). A slash command is picked from the `/` menu. Every gate (permissions, cooldowns, restrictions, disables, premium) is checked the same on both. Most commands are prefix-only, because Discord caps an app at 100 top-level slash commands. Each command's reference page lists its surfaces.

**Prefer the slash form in anything you pin or tell staff.** `/help` is true in every server, and `,help` only where the prefix is the default `,`.

## Change the prefix [#change-the-prefix]

<CommandBlock syntax=",prefix set <prefix>" example=",prefix set ," />

A server answers to several prefixes at once. Out of the box that is `,` and the words `jason` and `righteous`, and mentioning the bot works too: `@Righteous help` is `,help`, and `@Righteous` on its own replies with the server's prefix. `set` replaces only the primary one, so the words keep working whatever you choose. That makes them the way back in if nobody remembers the symbol: `righteous prefix list` answers. Matching ignores case and needs no space (`righteoushelp` works).

| Command                                                                                                               | Does                          | Needs              |
| --------------------------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------ |
| [`,prefix set <prefix>`](/commands/server-tools/prefix/#prefix-set)                                                   | Replaces the primary prefix   | **Manage Server**  |
| [`,prefix list`](/commands/server-tools/prefix/#prefix-list)                                                          | Shows every prefix            | **Manage Server**  |
| [`,prefix reset`](/commands/server-tools/prefix/#prefix-reset)                                                        | Restores the shipped defaults | **Manage Server**  |
| [`,prefix add`](/commands/server-tools/prefix/#prefix-add) / [`remove`](/commands/server-tools/prefix/#prefix-remove) | Adds or drops an extra prefix | Bot developer only |

Slash commands ignore the prefix, so `/help` still works after any change.

## Run now-playing with no prefix [#run-now-playing-with-no-prefix]

**Any premium** (Boosting included). Type `<yourname>fm` and Righteous runs [`,np`](/commands/lastfm/np/#np).

<CommandBlock syntax="<yourname>fm" example="jasonfm" />

The name is your Discord handle, display name or server nickname, lowercased with everything but letters, digits and `_` removed. It fires only as the exact first word, is skipped under two characters, and is skipped if it matches a real command.

[`,lf cc`](/commands/lastfm/lastfm/#lastfm-customcommand) (**Self Premium**) adds a word of your own on top. It doesn't replace the name trigger.

<CommandBlock syntax=",lf cc <trigger | reset>" example=",lf cc meow" />

## Give a command your own name [#give-a-command-your-own-name]

[`,alias`](/commands/server-tools/alias/#alias) makes a second name for a command, with arguments baked in. **Server Premium** and **Manage Server**.

<CommandBlock syntax=",alias add <name> <command> [arguments...]" example=",alias add yeet timeout {0} 1d" />

`{0}`, `{1}` are what the caller types, so `,yeet @someone` runs `,timeout @someone 1d`. An alias is refused by exactly what refuses the real command: same permissions, cooldown and disables. A real command wins a name clash, and [`,alias list`](/commands/server-tools/alias/#alias-list) marks the shadowed ones. If Server Premium lapses, aliases stop firing but are kept.

## Disable a command on both surfaces [#disable-a-command-on-both-surfaces]

[`,command disable`](/commands/server-tools/command/#command-disable) is keyed on the prefix name. The channel comes first; `all` means every channel.

<CommandBlock syntax=",command disable <#channel|all> <command> [subcommand]" example=",command disable all giveaway reroll" />

Two gaps: `,reroll` lives on slash as `/giveaway reroll`, so disabling `,reroll` leaves the slash leaf running. And `/lastfm top`, `/channelmute`, `/messages` and `/serverimage` use different sub names on slash, so a subcommand-level disable or restrict doesn't reach them. Disable the parent instead.

## Common issues [#common-issues]

**`,help` is ignored but `/help` works.** Your server isn't on `,&#x60;. Mention **@Righteous** to see its prefix, or try `jason help`, then run [`jason prefix set ,`](/commands/server-tools/prefix/#prefix-set).

**Nothing answers on either surface.** Not a prefix problem. Check the bot's View Channel and Send Messages, and [your server's access](/docs/getting-started/introduction/#get-access-for-your-server).

**`,prefix list` says "Missing permissions".** It needs **Manage Server**.

**Every command shows twice in the slash picker.** Discord shows the global and the server-scoped copy while a deploy propagates (about an hour). Either entry works, and it clears itself.

**`<yourname>fm` does nothing.** You need a premium tier (boosting the support server is free and enough), and a name with some letters or digits in it.

**An alias stopped working.** Server Premium lapsed. Renew and it resumes.
