# Configuring welcome and leave messages and their placeholders

## Preface - Permissions

You need to be the server owner, someone with the Administrator permission, or someone with the Manage Server permission in order to use these commands.

## The Commands to Configure Welcome and Leave Messages

There are some simple commands that you need to use in order to configure your welcome and leave messages. Here they are.

```
;membjoinleave join/leave message <Your message here>
```

```
;membjoinleave join/leave channel <Your channel here>
```

Quite simply, these two commands will allow you to configure your member join and member leave messages and the channel that said messages are sent to. Let's say you typed the following two commands:

```
;membjoinleave join message Welcome, <USER> to <SERVERNAME>. You are member 
number <MEMBERCOUNT>.
```

```
;membjoinleave join channel #general
```

It would result in something like this:

![](https://2456777771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBvfJXg-P2-AZKX2ol2%2F-LBvh2XCfD6_yNYbJ8xu%2F-LBvnxLNf029nqCe_b3F%2Fimage.png?alt=media\&token=f9426f46-9ce2-4ada-a80e-ccadaa5567b7)

The resultant message would look like:

![](https://2456777771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBvfJXg-P2-AZKX2ol2%2F-LBvh2XCfD6_yNYbJ8xu%2F-LBvo2bgIxKtWPs6rnj4%2Fimage.png?alt=media\&token=ad2cabb5-7cfc-4458-a22a-fb785cad3437)

The same applies for leave messages, just replace 'join' in those commands, with 'leave'.&#x20;

## Placeholders

So, you saw that I typed some strange statements in my message, namely '\<USER>', '\<SERVERNAME>', and '\<MEMBERCOUNT>'. But what are these? Well, these are placeholders. As I said in the description of this page, they are a powerful tool when used correctly. As you saw, the statements I used in the message were replaced in the final message by various things. This is the power of placeholders. You can obtain useful information about the user or the server and use it in your join and leave messages, and they will be replaced appropriately. Here is a full list of the placeholders for join and leave messages:

* \<USER> - Replaces with the mention of the user.
* \<SERVERNAME> - Replaces with the name of the server.
* \<MEMBERCOUNT> - Replaces with the member count of the server.
* \<MEMBERID> - Replaces with the Discord User ID of the user.
* \<USERTAG> - Replaces with the Discord 'Tag' of the user.

## Removing the messages

If you want to remove the join and/or leave message, there are two simple commands to do this.

```
;membjoinleave join remove
```

That will remove the join message.

```
;membjoinleave leave remove
```

That will remove the leave message.
