Command Aliases
Create shortcuts to invoke other commands.
Last updated
Create shortcuts to invoke other commands.
Last updated
Command aliases allow you to create custom commands that run other commands. This can be useful for creating shorter or more memorable commands for your server. For example, you could create an alias that runs the role
command with a specific role.
You can create an alias using the alias add
command.
You’re able to use predefined arguments in your aliases, however, if you want to use the user’s input as an argument, you have to use {}
. Keep in mind that the first argument is {0}
, the second argument is {1}
, and so on, it doesn’t start at {1}
.
Below is an example of an alias that uses predefined arguments:
This alias would run the timeout
command with the first argument being @bender.py
from the user’s input and the second argument being 10m
as predefined.
You can remove an alias using the alias remove
command.
You can use the alias list
command to view all aliases.