Logging Commands
Leave
Send a randomly-selected message to a channel when a member leaves.
The /logs leave commands let Zira send a leave message to a specified channel when a user leaves your server. Configure multiple messages and Zira picks one at random per leave.
Want to log new joins instead? See the join commands. The Dashboard's join/leave message page supports the same placeholders with a live preview.
Zira needs Send Messages permission on the channel you want messages sent to.
Setting Up The Leave Message System#
/logs leave set enables the leave system and sets the channel announcements go to.
Usage#
/logs leave set <Channel>
Example#
Adding Leave Messages#
Text Messages#
/logs leave add text <Your text here>
Example#
Embedded Messages#
For richer formatting, build the message in the embed builder and pick Leave as the type. The builder posts directly into your leave message pool, supports live placeholder preview, and removes the need to hand-edit JSON.
If you do still want to send raw JSON via the slash command:
/logs leave add embed <JSON Code>
Example#
Placeholders#
| Placeholder | Description | Example |
|---|---|---|
$user$ | Username | JakeyPrime |
$id$ | User's ID | 165047934113677312 |
$mention$ | A user ping | @Profit |
$guild$ | Server name | Team Hydra |
$membercount$ | Member count after the leave | 30847 |
$discriminator$ was removed in 2023 when Discord retired the four-digit discriminator system.
Log Examples#
Text Message#
Embedded Message#
Listing Current Leave Messages#
/logs leave list
Example#
Removing A Leave Message#
/logs leave remove <ID>
Get the ID from /logs leave list above.
Example#
Disabling The Leave System Entirely#
/logs leave disable