These variables may not always send the expected information and sometimes return
undefined
ornull
.
Below you will find a list of all the variables available regarding the user:
{user}
This variable will return the mention of the user in question.
Example: @DiscordUser#0000
{user.id}
This variable will return the ID of the user in question.
Example: 123456789123456789
{user.name}
This variable will return the name of the user in question.
Example: DiscordUser
{user.discriminator}
This variable will return the discriminator of the user in question.
Example: #0000
{user.tag}
This variable will return the name and discriminator of the user in question.
Example: DiscordUser#0000
{user.avatar_url}
This variable will return the avatar URL of the user in question. (if applicable)
Example: https://cdn.discordapp.com/avatars/123456789123456789/avatar_id.jpg
Below you will find a list of all the variables available regarding the guild:
{server}
This variable will return the name of the guild in question.
Example: Awesome server
{server.id}
This variable will return the ID of the guild in question.
Example: 123456789123456789
{server.icon_url}
This variable will return the server icon URL of the guild in question. (if applicable)
Example: https://cdn.discordapp.com/icons/123456789123456789/icon_id.png
{server.owner}
This variable will return the the mention of the owner of the guild in question. (if applicable)
Example: @DiscordUser#0000
{server.ownerID}
This variable will return the the ID of the owner of the guild in question. (if applicable)
Example: 123456789123456789
{server.members}
This variable will return the member count of the guild in question.
Example: 123,456
{server.splash}
This variable will return the splash URL of the guild in question. (if applicable)
Example: https://cdn.discordapp.com/splashes/123456789123456789/splash_id.png
{server.banner}
This variable will return the banner URL of the guild in question. (if applicable)
Example: https://cdn.discordapp.com/banners/123456789123456789/banner_id.png