Skip to content

07 Welcome Leave and Audit Logs

RK Ranjith edited this page Nov 25, 2026 · 2 revisions

πŸ‘‹ Module 7: Welcome, Leave & Audit Logging

Greet newcomers automatically with rich profile cards or custom text templates, announce departures, and record deleted/edited messages, leaves, bans, and unbans in a staff audit channel.


πŸ“‘ Commands & Event Cards in This Guide

  1. /setwelcome β€” Configure automated join greetings
  2. /setleave β€” Configure automated leave notices
  3. /setlogs β€” Configure the staff audit log channel
  4. All 5 Audit Log Cards

πŸ‘‹ /setwelcome

Sets the channel where RookieBot greets new members (and optionally sets a custom text template instead of the default card). Leaving channel blank disables custom welcome configuration.

1. Requirements & Overview

Property Value
Command Syntax /setwelcome [channel:<#channel>] [custom_message:<text>]
Who Can Use It Members with Manage Server (Manage Guild) permission
Bot Needs Send Messages, Embed Links in the chosen channel
Response Visibility Public Embed when enabling / Ephemeral when disabling

2. Parameters & Supported Placeholders

  • channel (Optional): Text channel for greetings (e.g., #welcome). Leave blank to disable.
  • custom_message (Optional): Custom text template. Supported placeholders:
    • {user} β†’ Mentions the user (@Alex)
    • {username} β†’ Plain username (alex)
    • {server} β†’ Server name (My Community Server)
    • {count} β†’ New total member count (152)

3. Exact Step-by-Step Process in Discord

  1. Type /setwelcome.
  2. Select channel (e.g., #welcome).
  3. (Optional) Enter custom_message (e.g., Welcome {user} to {server}! You are member #{count}!).
  4. Press Enter.

4. Exact What You See in Discord

A. Configuration confirmation:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ πŸ€– RookieBot  [APP]  Today at 2:30 PM                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ πŸ‘‹ Welcome System Configured                                β”‚
β”‚ New member greetings will be sent to #welcome.              β”‚
β”‚                                                             β”‚
β”‚ Template: Default Embed Welcome Card                        β”‚
β”‚                                                             β”‚
β”‚ Tags supported: {user}, {username}, {server}, {count}       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

B. Default Welcome Card posted in #welcome when a member joins (if no custom_message is set):

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ πŸ€– RookieBot  [APP]  Today at 2:32 PM                        β”‚
β”‚ Welcome @Alex!                                              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ πŸ‘‹ Welcome to My Community Server!                          β”‚
β”‚ Hey @Alex, welcome to the server! πŸŽ‰                        β”‚
β”‚ We're glad to have you here. Please make sure to check the  β”‚
β”‚ rules and enjoy your stay!                                  β”‚
β”‚                                                             β”‚
β”‚ Account Created        Member Count                         β”‚
β”‚ 2 years ago            #152                                 β”‚
β”‚                                                             β”‚
β”‚ User ID: 123456789012345678                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

(Tip: If you don't run /setwelcome, RookieBot automatically falls back to Discord's System Channel or a channel named welcome, welcomes, general, lobby, or chat.)

C. When disabling (/setwelcome with no parameters):

πŸ€– RookieBot  [APP]  πŸ‘οΈ Only you can see this
πŸ›‘ Welcome greetings have been disabled.

πŸ‘‹ /setleave

Posts a notice whenever someone leaves the server.

1. Requirements & Overview

Property Value
Command Syntax /setleave [channel:<#channel>] [custom_message:<text>]
Who Can Use It Members with Manage Server (Manage Guild) permission
Supported Tags {username}, {server}, {count}

2. Exact Step-by-Step Process in Discord

  1. Type /setleave.
  2. Select channel (e.g., #goodbyes), or leave blank to disable.
  3. (Optional) Enter custom_message (e.g., **{username}** has left {server}. We now have {count} members.).
  4. Press Enter.

3. Exact What You See in Discord

A. Confirmation after setup:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ πŸ€– RookieBot  [APP]  Today at 2:35 PM                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ πŸ‘‹ Leave Messages Configured                                β”‚
β”‚ Departure notices will be sent to #goodbyes.                β”‚
β”‚                                                             β”‚
β”‚ Template: Default Goodbye Embed                             β”‚
β”‚                                                             β”‚
β”‚ Tags supported: {username}, {server}, {count}               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

B. Default Goodbye Card when a member leaves:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ πŸ€– RookieBot  [APP]  Today at 2:37 PM                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ πŸ‘‹ Goodbye!                                                 β”‚
β”‚ alex#0000 has left the server. We now have 151 members.     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“‹ /setlogs

Assigns a private staff channel to receive automatic real-time audit logs whenever messages are deleted or edited, members leave/get banned/unbanned, or /warn is issued.

1. Requirements & Overview

Property Value
Command Syntax /setlogs [channel:<#channel>]
Who Can Use It Members with Manage Server (Manage Guild) permission
Bot Needs Send Messages, Embed Links in the log channel
Response Visibility Confirmation card inside log channel + Ephemeral confirmation to you

2. Exact Step-by-Step Process in Discord

  1. Create a private #mod-logs channel visible only to staff and RookieBot.
  2. Type /setlogs and pick channel:#mod-logs (or leave blank to disable logs).
  3. Press Enter.

3. Exact What You See in Discord

  • Inside #mod-logs:
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ πŸ€– RookieBot  [APP]  Today at 2:40 PM                        β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ πŸ“‹ Mod-Logs Configured                                      β”‚
    β”‚ Server audit events will now be logged to #mod-logs.        β”‚
    β”‚                                                             β”‚
    β”‚ Configured by AdminUser                                     β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    
  • Private confirmation to you:
    πŸ€– RookieBot  [APP]  πŸ‘οΈ Only you can see this
    βœ… Mod-logs channel set to #mod-logs!
    
  • If disabled (/setlogs with empty channel):
    πŸ€– RookieBot  [APP]  πŸ‘οΈ Only you can see this
    πŸ›‘ Mod-logs have been disabled for this server.
    

πŸ•΅οΈ Exact Audit Log Events Logged Automatically

Once /setlogs is active, RookieBot automatically posts these cards into #mod-logs:

  1. πŸ—‘οΈ Message Deleted (author, #channel, text content up to 1024 chars, attachment filenames, Message ID)
  2. ✏️ Message Edited (author, #channel, clickable [Go to Message] jump link, Before text, After text, Message ID)
  3. πŸ“₯ Member Joined (member mention, ID, avatar, Account Created, Bot Account?, and updated Total Members)
  4. πŸ‘‹ Member Left (member mention, ID, avatar, and updated Total Members)
  5. 🏷️ Nickname Changed (member mention, Before nickname, After nickname)
  6. 🎭 Member Roles Updated (member mention, βž• Added roles, βž– Removed roles)
  7. πŸ”Š / πŸ”‡ / πŸ”€ Voice Channel Activity (Joined Voice Channel, Left Voice Channel, Switched Voice Channel)
  8. πŸ”¨ Member Banned (user mention, ID, and avatar)
  9. πŸ•ŠοΈ Member Unbanned (user mention, ID, and avatar)
  10. ⚠️ Member Warned (mirrored automatically whenever a mod runs /warn)

Clone this wiki locally