Variables
User
Variable | Description |
---|---|
| The unique identifier of the user |
| The username of the user |
| A mention of the user, which can be used to notify them in a message |
| The URL of the user's avatar |
| The color of the user's banner |
| The global name of the user |
These variables can be used in the following modules: Automatic Moderation, Interactive Messages, Love Rooms, Notifications, Private Rooms.
For Love Rooms, use user1
and user2
variables.
Member
Variable | Description |
---|---|
| The nickname of the member on the server |
| The display name of the member, which is their nickname if they have one, or their username otherwise |
| The URL of the member's server avatar |
| The name of the member's highest role on the server |
These variables can be used in the following modules: Automatic Moderation, Interactive Messages, Love Rooms, Notifications, Private Rooms.
For Love Rooms, use member1
and member2
variables.
Guild
Variable | Description |
---|---|
| The unique identifier of the server |
| The name of the server |
| The URL of the server's icon |
| The URL of the server's banner |
| The number of the members on the server |
| The abbreviated form of the server's name |
| The number of server boosts |
These variables can be used in the following modules: Automatic Moderation, Interactive Messages, Love Rooms, Notifications, Private Rooms, Starboard.
Roles
Variable | Description |
---|---|
| The roles that were added to the member |
| The roles that were removed from the member |
These variables can be used only in the Interactive Messages module!
Timestamp
Variable | Description |
---|---|
| The current Unix timestamp |
| The Unix timestamp for the date and time when the user's account was created |
| The Unix timestamp for the date and time when the member joined the server |
| The Unix timestamp for the date and time when the server was created |
These variables can be used in the following modules: Automatic Moderation, Interactive Messages, Notifications.
Color
Variable | Description |
---|---|
| The default color of the embed, set in the bot's configuration for system messages |
| The color of the embed, taken from the bot settings |
| The error color of the embed, set in the bot's configuration for error messages |
These variables can be used in the following modules: Automatic Moderation, Interactive Messages, Notifications, Starboard.
Handling Conditional Expressions with || and ? Operators
||
: This operator is used to handle expressions of the form{{ identifier || 'default' }}
. Ifidentifier
is defined and notnull
, it is replaced with the corresponding value. Ifidentifier
is undefined ornull
, it is replaced with'default'
.?
: This operator is used to handle ternary expressions of the form{{ identifier ? 'value if true' : 'value if false' }}
. Ifidentifier
is defined and notnull
, it is replaced with'value if true'
. Ifidentifier
is undefined ornull
, it is replaced with'value if false'
.
{{ roles.added || 'No roles have been added.' }}
Note: You can use both single '
and double quotes "
for strings in these expressions. Additionally, it is possible to include variables inside these conditional expressions.
Last updated