Syntax
Required and optional
Optional arguments are positional, so you can drop them off the end but you can’t skip
one in the middle. Given
!cmd [wow] [cool] <yeah>, typing !cmd apple banana fills
wow and cool, leaving yeah missing. To skip cool, pass an empty pair of quotes:
Example
Arguments with spaces
Arguments end at the first space. If one needs a space inside it and another argument comes after, wrap it in double quotes.Example
very becomes cool and cool becomes yeah, and everything
after that shifts out of place.
To include a literal quote mark inside a quoted argument, escape it with a backslash:
"she said \"hi\"".
Flags
Flags modify how a command runs. They can appear anywhere after the command name and are not case sensitive. All of these are read identically, so use whichever your keyboard gives you:That last one matters on mobile. iOS autocorrect turns
-- into an em dash as you
type. The bot accepts it, so there’s nothing to fix and nothing to disable.Example
Example
Users, channels, and roles
Anywhere a command asks for a user, channel, or role, you can pass any of these:Partial names match the first result found. If a server has several similar names,
use a mention or an ID to be certain you’re targeting the right one.
