Leave
Set up customizable goodbye messages for your server
Overview
Set a customizable goodbye message that automatically sends once a user leaves the server.
Leave messages only send after you set BOTH a channel and enable the feature. Nothing will send until both are configured.
Getting Started
Enable the leave system
Initialize the leave feature with:
,leave setup
This creates a default configuration. You can reset at any time with ,leave reset.
Set the leave channel
Choose where greed announces departures:
,leave channel #goodbye
greed must have permission to send messages in this channel.
Write your leave message
Customize the template using variables and embeds:
,leave message {embed}{title: Goodbye!}{description: {user.mention} has left us}
Use ,leave preview to test before saving.
Test the message
Preview how your message looks with yourself as the departing member:
,leave test
greed will show you the rendered message for inspection.
Verify it's working
Once enabled, the message sends automatically when members leave. Check your configured leave channel permissions to ensure messages are being delivered.
Available Variables
Leave messages have access to the following context:
{user.*}— The departing member (all user fields listed below){guild.*}— Your server's properties{channel.*}— The leave message channel properties
User Variables
| Variable | Description | Example |
|---|---|---|
{user} | Username | moonpie |
{user.mention} | Mention tag | <@123456789> |
{user.name} | Username only | moonpie |
{user.id} | Discord ID | 123456789 |
{user.tag} | Username with tag (old format) | moonpie#0001 |
{user.avatar} | Avatar URL | https://cdn.discordapp.com/avatars/... |
{user.display_name} | Display name (nickname or username) | moonpie or custom nickname |
{user.bot} | Is bot? | Yes or No |
{user.created_at} | Account creation date (Discord timestamp) | <t:1234567890:F> |
{user.created_at_timestamp} | Unix timestamp | 1234567890 |
{user.joined_at} | Join date (Discord timestamp) | <t:1234567890:F> |
{user.joined_at_timestamp} | Unix timestamp | 1234567890 |
{user.top_role} | Highest role name | Member or N/A |
{user.role_list} | Comma-separated role names | Member, Verified, Active |
{user.color} | Hex color of highest role | #FF0000 or N/A |
{user.boost} | Was boosting? | Yes or No |
{user.boost_since} | Boost start date (Discord timestamp) | <t:1234567890:F> or N/A |
{user.guild_avatar} | Server-specific avatar URL | URL or N/A |
Guild Variables
| Variable | Description | Example |
|---|---|---|
{guild} | Server name | My Awesome Server |
{guild.name} | Server name | My Awesome Server |
{guild.id} | Server ID | 987654321 |
{guild.count} | Member count (formatted) | 1,234 |
{guild.member_count} | Member count (formatted) | 1,234 |
{guild.created_at} | Server creation date (Discord timestamp) | <t:1234567890:F> |
{guild.created_at_timestamp} | Unix timestamp | 1234567890 |
{guild.icon} | Server icon URL | https://cdn.discordapp.com/icons/... |
{guild.banner} | Server banner URL | https://cdn.discordapp.com/banners/... |
{guild.boost_count} | Number of boosts | 5 |
{guild.boost_tier} | Boost level | 1, 2, 3, or No Level |
{guild.emoji_count} | Custom emoji count | 50 |
{guild.role_count} | Total roles | 25 |
Channel Variables
| Variable | Description | Example |
|---|---|---|
{channel} | Channel name | goodbye |
{channel.name} | Channel name | goodbye |
{channel.mention} | Channel mention | <#123456789> |
{channel.id} | Channel ID | 123456789 |
{channel.topic} | Channel topic | Member departures or N/A |
Template Examples
Simple Plain Text
Copy and paste to try:
,leave message {user.name} has left {guild.name}. We had {guild.member_count} members here.
Embedded Goodbye with Farewell
,leave message {embed}{color: 16711680}{title: Member Left}{description: {user.mention} has departed from {guild.name}.}{field: Time Spent|Joined {user.joined_at}}{field: Final Roles|{user.role_list}}{thumbnail: {user.avatar}}
Leave with Status Indicator
,leave message {embed}{title: Goodbye}{description: {user.mention} ({user.name}) has left. We now have {guild.member_count} members. Thanks for being part of {guild.name}!}{footer: {user.id}}
Customization
Embed Formatting
Use embed syntax to create visually rich messages:
,leave message {embed}{color: 16711680}{title: Member Left}{description: {user.mention} has departed}{field: Member ID|{user.id}}{field: Joined|{user.joined_at}}
Using Custom Scripts
Save a reusable leave template by name:
,custom save goodbye-msg {embed}{color: 16711680}{title: Farewell}{description: {user.mention} has left us. Goodbye!}{thumbnail: {user.avatar}}
Then apply it:
,leave message {cscript:goodbye-msg}
Custom script names must start with a letter or number and contain only lowercase letters, numbers, hyphens, and underscores (max 32 characters). You can save up to 100 custom scripts per server.
Management
View Current Message
See the template currently saved:
,leave view
If using the default, it will display the default template.
Preview the Message
Test how your message renders with yourself as the departing member:
,leave test
greed will show you the exact message formatting and embeds.
Reset to Default
Return to greed's default leave template:
,leave reset
This clears your custom message entirely.
Troubleshooting
Messages Aren't Sending
- Channel Deleted or Inaccessible: Verify the configured channel still exists and greed has
Send Messagespermission. Use,leave viewto check the configured channel. - Feature Not Enabled: Both a channel and the enable flag must be set. Run
,leave setupto initialize. - Member Left Before Message Sent: If a member leaves and immediately rejoins or the bot is slow to react, the message may not send. This is a timing issue with Discord's gateway events.
- Template Error: If your script has syntax errors, the message fails silently. Use
,leave testto catch rendering issues before deployment. - Bots Not Announced: greed does not send messages when bots leave the server.
Template Renders Empty or Broken
- Check that variable names are spelled correctly (e.g.,
{user.name}not{user.username}). - Confirm embeds follow the embed resource guide.
- Use
,leave testto preview the rendered output before saving.
No Messages on Member Departures
- Ensure greed received the member leave event from Discord (check logs).
- Verify the leave channel is not set to a voice channel or inaccessible category.
- Check that greed's role has permission to send messages in the configured channel.
If the configured channel is deleted or greed loses permission to send messages there, leave messages will silently fail to send. Verify the bot has permission to send messages in the leave channel before investigating other issues.