Leaves
A message in the channel, with a custom image, when someone leaves the server.
When someone leaves the server, MayaBot writes a message in a channel, with or without an image. You'll find it in Config > Members, below Welcome.
The Leaves module works like the Welcome channel message, with a few differences:
- there's only the channel message: no direct message and no roles;
%mention%never sends notifications;- the message is also sent for people who are kicked or banned, because Discord reports the leave the same way;
- bots that leave are ignored.
Setting up
Turn the module on
Turn on the Leaves switch and press Set up.
Choose channel and message
Choose the Channel, the Format and write the text. The suggested text is "%username% has left the server. We're now %membercount%." and it follows the server language until you edit it.
Image and saving
Leave Attach the goodbye image on to add the card and press Save. With Send a test you see the result.
The format, text limits and card editor are the same as Welcome: see Channel message and Welcome image. The Leaves card is separate from the Welcome one and has its own templates, with texts such as "GOODBYE" and "GAME OVER".
Placeholders
They're the same as Welcome, with two differences:
%displayname%and the avatar don't use the server nickname and avatar, because on leaving Discord only sends the account data. If you need a name that never changes, use%username%.%membercount%no longer counts whoever just left.
| Placeholder | Becomes |
|---|---|
%mention% | Member mention, without notification |
%username% | Username |
%displayname% | Account's global name, or username |
%userid% | User ID |
%avatar% | Account avatar link |
%createdat% | Account creation date |
%server%, %serverid%, %servericon% | Server name, ID and icon |
%membercount% | Member count after the leave |
Send a test
Send a test posts a real message in the channel with you as the member who left. Like a real leave, it uses only your account data: no server nickname or server avatar.
Permissions
| MayaBot's permission in the channel | When it's needed |
|---|---|
| View Channel, Send Messages | Always |
| Embed Links | Embed (v1) format |
| Attach Files | With the card |
If a permission is missing, the message isn't sent.
Common problems
| Problem | Fix |
|---|---|
| Nothing arrives | Check that the module is on and set up |
| The message doesn't arrive | Check the warnings in the panel and MayaBot's permissions in the channel |
| The name isn't the server nickname | Discord doesn't send the nickname on leaving: use %username% |
| The message is also sent for bans | Discord doesn't tell leaves, kicks and bans apart |