The bot ยท The bot
Variables
Values that are filled in when a message is sent.
Overview
Write a variable between curly braces in a message and the bot replaces it by the real value. {member.mention} becomes a mention of the member, {guild.member_count} the number of members, and so on.
For anything about a member, replace member by inviter to get the same value for the person who invited them.
Examples in messages
Variables work in the messages you set for the bot, such as the arrival, departure and level-up messages. Each one below is the message the bot uses by default, which you can copy and change.
The text on the left is what you write in the settings. The bot fills in the values when it sends the message. Dates are written day/month/year.
Welcome message
Uses the member who joined and the person who invited them.
What you write
๐ {member.link} just joined us, thanks to {inviter.link},
who now has **{inviter.invite.total}** invites! ๐
๐
Their account was created on **{member.created_at}**.
๐ This is the **{member.invite.join_count}** time they've joined.
๐ฅ We're now **{guild.member_count}** members strong!What members see
Leave message
Sent when someone leaves. joined_at is the day they first joined.
What you write
๐ค **{member.link} just left the server.**
๐ They joined on: `{member.joined_at}`
๐ This is the **{member.invite.join_count}** time they've left.
๐ฅ We now have **{guild.member_count}** members.What members see
Level-up message
Uses the XP variables of the member who levelled up.
What you write
Congratulations, {member.mention}! You have reached text level #{member.xp.level_text} and voice level #{member.xp.level_voice}!What members see
Your own message
Mix any variables you like.
What you write
Welcome {member.mention} to **{guild.name}**! You are member #{guild.member_count}.What members see
Commands
/bot variableLists the variables you can use in your messages, such as welcome messages and embeds. They are replaced by the real values when the message is sent.
Need a hand?
Our support server is the fastest way to get help or suggest a feature.