Skip to main content
MayaBotDocs

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.
PlaceholderBecomes
%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 channelWhen it's needed
View Channel, Send MessagesAlways
Embed LinksEmbed (v1) format
Attach FilesWith the card

If a permission is missing, the message isn't sent.

Common problems

ProblemFix
Nothing arrivesCheck that the module is on and set up
The message doesn't arriveCheck the warnings in the panel and MayaBot's permissions in the channel
The name isn't the server nicknameDiscord doesn't send the nickname on leaving: use %username%
The message is also sent for bansDiscord doesn't tell leaves, kicks and bans apart

On this page