Command aliases
Give a command a second, server-specific name with arguments baked in.
An alias is a second name your server gives to a command it already has: ,yeet @someone can run
,timeout @someone 1d. It's Server Premium, and every subcommand needs Manage Server (granted by
Discord or through fake permissions). To rename a whole command for
everyone, see
prefix and slash commands.
A lapsed subscription silently stops aliases
Server Premium is checked on every use. If it lapses, your aliases are kept but the words fall through as ordinary text, with no error. They work again the moment the server is premium again.
Create an alias
,alias add takes the new name, the command it runs, then any
arguments to bake in.
Syntax
,alias add <name> <command> [args...]
Example
,alias add yeet timeout {0} 1d| Part | Accepts |
|---|---|
<name> | 1 to 32 letters, numbers, - or _, no spaces; stored lowercase |
<command> | Any top-level command, optionally with a subcommand ( clear bots) |
[args...] | Up to 200 characters of preset arguments and placeholders |
A server holds at most 50 aliases. Aliases can't point at a developer-only or disabled command, or at
alias itself.
Let the caller fill in the blanks
{0} is the first word the caller types, {1} the second, up to {9}. Anything typed beyond them is
appended, so ,shh @someone being rude runs ,timeout @someone 10m being rude.
Syntax
,alias add <name> <command> {0} [more args...]Example
,alias add shh timeout {0} 10mNumbers must run from {0} with no gaps ({0} {2} is refused). The highest number plus one is how many
arguments the caller must give, and a run with too few is refused rather than run with a blank. {{ and
}} print a literal { and }.
Change, remove or wipe
| Command | Does |
|---|---|
Repoints an alias. It can't rename; remove and add instead. Works even at the 50 limit | |
Deletes one | |
Deletes every alias |
clear has no undo, and y counts as a confirmation
confirm, yes and a bare y all wipe everything. Without one, it just tells you how many aliases are
at stake.
See what the server has
| Command | Shows |
|---|---|
Every alias, grouped by the command it runs, with a count against the limit | |
One alias in full: target, arguments needed, a worked example, who made it | |
Matches the name and the command it runs |
Names that are refused
A name that is already a real command or a built-in alias, one the server already uses, or a subcommand
of alias itself is refused. Such an alias would save and never run, so you're told at write time. For
example, purge is already clear's own alias.
If a later release adds a command with the same name as one of your aliases, the real command wins and
your alias is marked shadowed in ,alias list (and explained in ,alias view), not deleted. Rename it.
missing target and unavailable markers work the same way.
An alias is never a second door
Every gate keys on the real command, never on the word typed. An alias inherits the command's permissions
(fake ones included), cooldown, role restrictions,
channel disables and the
blacklist. So ,command disable and ,restrict on a
command already cover all its aliases.
Common issues
Nothing happens when I type my alias. Check Server Premium is still active, then ,alias list. An
alias whose target no longer exists also fails silently, and list marks it.
"This alias needs 1 more argument". The alias has a {0} you didn't fill. The message shows the shape
it wants, like ,shh <arg1>.
,alias add says the name is already a command. Pick another word; the message names what it
collided with.
An alias stopped working after an update. A release took the name. Run ,alias view, then rename it.
Members can run an alias but not the command. They can't. The permission is coming from elsewhere: check fake permissions and whether they hold Administrator.