Variables

When configuring join or leave messages, you can use variables. These will allow you to display information dynamically. This is a concrete example:

Configured

Sent by the bot

Hello {user}

Hello @Noob#0123

Indeed, if user Noob#0123 joined, the {user} would have been replaced by his mention. This is the complete list of variables:

User

In the following variables, user is the user who has just joined your server:

Configured

Replaced by

{user}

The mention of the user.

{user.tag}

The username of the user and his #.

{user.name}

The username of the user without his #.

{user.createdat}

The age of the user's account.

Server

Here, guild represents your Discord server after the user's join or leave:

Configured

Replaced by

{guild}

The name of your server.

{guild.count}

The number of members on your server.

Inviter

Here, inviter represents the user who invited the user who joined or left your Discord:

Configured

Replaced by

{inviter}

The mention of the user.

{inviter.name}

The username of the user without his #.

{inviter.tag}

The username of the user and his #.

{inviter.invites}

The number of invites of the user.

Invite

Here, invite represents the invite used by the member to join (or the invite he had used to join if it is a leave):

Configured

Replaced by

{invite.code}

The code of the invite.

{invite.url}

The URL of the invite.

{invite.uses}

The number of uses of the invite.