Repository navigation
02 Warnings and Infractions
RookieBot saves every formal warning in its persistent SQLite database and automatically escalates punishments when a member accumulates too many warnings.
| Total Warnings Reached | Automatic Punishment |
|---|---|
| 3 Warnings | ⏳ 1-Hour Timeout automatically applied |
| 5 Warnings | 👢 Automatic Kick from the server |
| 7+ Warnings | 🔨 Automatic Ban from the server |
Note
If you configured a Mod-Log channel with /setlogs, every /warn embed is also mirrored automatically into your audit log channel!
-
/warn— Issue a warning and trigger auto-escalation -
/warnings— View a member's infraction history -
/delwarn— Delete one specific warning by ID -
/clearwarns— Reset all warnings for a member
Issues a formal warning, sends a Direct Message embed to the member, records a unique numeric Infraction ID (e.g., #12), and checks the 3-5-7 auto-escalation thresholds.
| Property | Value |
|---|---|
| Command Syntax | /warn member:<@user> [reason:<text>] |
| Who Can Use It | Members with Timeout Members (Moderate Members) permission |
| Bot Needs | Timeout Members permission (+ Kick / Ban if escalation reaches 5 or 7) |
| Where It Works | Any server text channel |
| What Discord Shows | Public Embed + Member DM + Automatic copy in /setlogs channel (if set) |
-
member(Required): The member receiving the warning. -
reason(Optional): Explanation of the rule broken. Defaults toNo reason provided.
- Type
/warnin any server text channel and select the command. - In
member, select the member to warn. -
(Optional) Click
reasonand describe the violation (e.g.,Disrespectful behavior in #general). - Press
Enter.
A. Direct Message sent to the warned member:
┌─────────────────────────────────────────────────────────────┐
│ 🤖 RookieBot [APP] Today at 1:00 PM │
├─────────────────────────────────────────────────────────────┤
│ ⚠️ Warning Received in My Community Server │
│ You have been formally warned by staff. │
│ Reason: Disrespectful behavior in #general │
│ Total Warnings: 3 │
└─────────────────────────────────────────────────────────────┘
B. Public Embed in channel (example when hitting Warning #3):
┌─────────────────────────────────────────────────────────────┐
│ 🤖 RookieBot [APP] Today at 1:00 PM │
├─────────────────────────────────────────────────────────────┤
│ ⚠️ Member Warned │
│ │
│ Member │
│ @Troublemaker (troublemaker#0000 - 112233445566778899) │
│ │
│ Moderator Total Warnings Infraction ID │
│ @Moderator 3 #14 │
│ │
│ Reason │
│ Disrespectful behavior in #general │
│ │
│ Punishment Escalation │
│ ⏳ Auto-Escalation: Reached 3 warnings ➔ Member Timed Out │
│ for 1 hour! │
└─────────────────────────────────────────────────────────────┘
/warn member:@Member reason:Spamming caps in chat-
/warn member:@Member(uses default reasonNo reason provided)
-
❌ You cannot warn yourself!/❌ You cannot warn the bot!/❌ You cannot warn the server owner!→ Safety guards prevent invalid targets. -
❌ You cannot warn someone with a role equal to or higher than yours!→ Role hierarchy check failed. -
⚠️ Escalation triggered but failed: ...→ RookieBot issued the warning, but lackedKick MembersorBan Memberspermission (or had a lower role) when trying to auto-punish at 5 or 7 warnings.
Displays the last 15 warnings/infractions for any member (or yourself if left blank).
| Property | Value |
|---|---|
| Command Syntax | /warnings [member:<@user>] |
| Who Can Use It |
@everyone (All server members) |
| Bot Needs |
Send Messages, Embed Links
|
| Where It Works | Any server text channel |
| What Discord Shows | Public Embed (or Ephemeral notice if 0 warnings) |
-
member(Optional): Member whose infractions you want to inspect. Defaults to you.
- Type
/warnings. -
(Optional) Select a
memberto check their history, or leave blank to check your own. - Press
Enter.
A. When the member has recorded warnings:
┌─────────────────────────────────────────────────────────────┐
│ 🤖 RookieBot [APP] Today at 1:05 PM │
├─────────────────────────────────────────────────────────────┤
│ 📋 Infraction History for Troublemaker │
│ • #12 [WARN] - 2 days ago by @Moderator │
│ └ Reason: Spamming emojis │
│ • #14 [WARN] - 5 minutes ago by @Moderator │
│ └ Reason: Disrespectful behavior in #general │
│ │
│ Total Infractions: 2 │
└─────────────────────────────────────────────────────────────┘
B. When the member has zero warnings:
┌─────────────────────────────────────────────────────────────┐
│ 🤖 RookieBot [APP] Today at 1:05 PM 👁️ Only you can see │
│ ✅ @GoodMember has no recorded warnings or infractions. │
└─────────────────────────────────────────────────────────────┘
Deletes a single warning using its #ID shown in /warn or /warnings (which also lowers the member's active warning count).
| Property | Value |
|---|---|
| Command Syntax | /delwarn infraction_id:<number> |
| Who Can Use It | Members with Timeout Members (Moderate Members) permission |
| Bot Needs | Send Messages |
| Where It Works | Any server text channel |
| What Discord Shows | Public message if deleted / Ephemeral error if not found |
-
infraction_id(Required): The numeric warning ID (for#14, type14without the#).
- Run
/warnings member:@Userto check the warning ID (for example,#14). - Type
/delwarnand enter14ininfraction_id. - Press
Enter.
-
If found & deleted:
🤖 RookieBot [APP] Today at 1:10 PM ✅ Infraction #14 has been deleted. -
If ID does not exist in this server:
🤖 RookieBot [APP] Today at 1:10 PM 👁️ Only you can see ❌ Infraction #999 not found for this server.
Permanently deletes all warnings and infractions recorded for a member in this server.
| Property | Value |
|---|---|
| Command Syntax | /clearwarns member:<@user> |
| Who Can Use It | Members with Administrator permission |
| Bot Needs | Send Messages |
| Where It Works | Any server text channel |
| What Discord Shows | Public confirmation message |
-
member(Required): The member whose infraction history you want to wipe clean.
- Type
/clearwarnsin chat. - Select the target user in
member. - Press
Enter.
🤖 RookieBot [APP] Today at 1:15 PM
🧹 Cleared 3 warning(s) for @Troublemaker.
🛡️ Security & Moderation
📩 Support, Roles & Stats
- 05. Support Tickets
- 18. Staff Applications
- 06. Roles & Auto-Roles
- 07. Welcome, Leave & Logs
- 08. Server Stats Counters
📈 Leveling & Economy
💬 Voice & Community
- 11. Temporary Voice Channels
- 12. Suggestions, Starboard & Polls
- 13. Tags, AutoResponder & Sticky
- 16. Birthdays & Celebrations
- 17. Invites & Referrals
🧰 Utilities & Premium