Slash and prefix commands
Every command runs both ways. When to use which, and how to change the prefix.
Overview#
Iris is built on slash commands, and every one of them also answers to your server prefix. /ban @user spam and .ban @user spam run the same code and produce the same reply, so nothing in these docs is slash-only unless it says so.
The prefix is . on a new server. You can change it, or turn on mentioning Iris as a prefix, in bot settings.
/ban @user spam
.ban @user spam
@Iris ban @user spamWhich one to use#
Writing arguments on the prefix path#
- Members, channels and roles are accepted as a mention, an id, or an exact name.
- The final text argument is greedy: it takes the rest of the message, so a ban reason or an announcement never needs quotes.
- Yes and no arguments accept
true,yes,onandenable, or their opposites. - Subcommands follow the group, exactly as they read in the docs:
.giveaway create.
.warn @user posting in the wrong channel again
.slowmode set 10
.purge all 50Where the two differ#
A handful of commands open a Discord modal, which only an interaction can do. Running one from the prefix returns a short note asking you to use the slash form instead of failing.
The reverse also happens. Module configuration that the dashboard replaced was retired from the slash picker, but kept on the prefix as a fallback for when the dashboard is not to hand. Those are the .x help entries on the commands page: .welcome, .starboard, .logging, .antilink, .custom and the rest. VoiceMaster is prefix only for the same reason, under .vcmaster.
.welcome help
.starboard config
.logging helpChanging the prefix#
- Open the dashboard and pick your server.
- Go to Server > Bot Settings.
- Set Prefix to what you want, up to 32 characters.
- Turn on Mention as Prefix if you also want
@Iris ban ...to work. - Save. The new prefix applies immediately, in this server only.
Common questions#
My slash commands are missing.
Discord syncs them on its own schedule, and a fresh invite can take a few minutes. Use the prefix in the meantime, and check Iris has Use Application Commands in the channel.
Does the prefix change for every server?
No. The prefix and the language are per server, so one server can run . while another runs !.
Is there a rate limit?
Yes, and it is the same on both paths. Running the same command repeatedly gets a short cooldown reply rather than being ignored.
Can I turn the prefix off entirely?
Not as a setting. Turning individual commands off for the whole server, on both paths at once, is what command management is for.