# Users

A command to set a channel to which the bot will send a message when a user joins or leaves the server.\
\
Those are the two images that will be sent when a user joins/leaves: <img src="https://3608084162-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHSk301sDDnnwxZ0xOM%2F-MIEgeXC-NVOIA33RzFY%2F-MIEgiLgrHaH5IqZn7Cr%2FScreenshot%202020-09-27%20at%2015.14.00.png?alt=media&#x26;token=dc6f338a-078d-4db1-ab08-8553ab7dfe2a" alt="" data-size="original"> \
&#x20;<img src="https://3608084162-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHSk301sDDnnwxZ0xOM%2F-MIEgeXC-NVOIA33RzFY%2F-MIEhocztodmojAra-Q9%2FScreenshot%202020-09-27%20at%2015.18.48.png?alt=media&#x26;token=f1b3cb57-71c6-4e68-a1da-1d72765f92c8" alt="" data-size="original"> \
\&#xNAN;*`*Spike also mentions the user when he enters and leaves, for privacy reasons this is not in the screenshots`*

{% tabs %}
{% tab title="Example" %}

```
%setup users [channel*] [type]
```

{% endtab %}

{% tab title="Author permission level" %}
Administrator
{% endtab %}

{% tab title="Bot's permission needed" %}
Send Messages
{% endtab %}
{% endtabs %}

For the channel varible you can use the channel mention (#channel) or its id.

For the type you can:

* Leave it blank, in the same channel will be logged joins and leaves
* join, in the channel will only be sent a message when a user joins
* leave, in the channel will only be sent a message when a user leaves

\*If you don't specify a channel the bot will answer by asking if you want to remove the current channel for those kind of logs by adding a the reaction:<img src="https://3608084162-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHSk301sDDnnwxZ0xOM%2F-MIEivbVxmwTzVtmJUhL%2F-MIEjfelY9-wW6fW2Zbf%2FScreenshot_2020-09-27_at_15.26.24.png?alt=media&#x26;token=74d6ff47-13d9-4fe1-bca3-dcbd03ba9f28" alt="" data-size="line">&#x20;
