Rextro Documentation

Complete command reference for all 25+ modules in Rextro. Every command listed here reflects the actual implemented code.

All commands are Discord Slash Commands — type / in any channel to see available commands. No prefix needed.

Required Permissions

Permission Required For
Administrator (recommended) Setup commands, Emergency lockdown, AutoMod full config
Manage Messages AutoMod, Sniper, Purge, Announcements
Manage Roles Reaction Roles (/rolepanel), Temp Roles, Level Rewards
Manage Channels Lockdown (/emergency), Dynamic Voice (/setup_voice)
Ban Members Shadow Realm (/banish), Moderation Panel
Moderate Members Moderation Panel (/modpanel), Timeout commands

Moderation Panel

Rextro's interactive moderation UI — all common mod actions available without memorizing commands.

Command
/modpanel

Opens a panel with a user select dropdown to choose a target member, then provides action buttons including:

  • ⏱️ Timeout 10m — Timeout the user for 10 minutes
  • ⏲️ Timeout 1h — Timeout the user for 1 hour
  • Remove Timeout — Lift an active timeout
  • 👢 Kick User — Kick from server
  • 🔨 Ban User — Permanently ban
  • 🔒 Lock Channel — Prevent @everyone from sending in this channel
  • 🔓 Unlock Channel — Restore permissions
  • 🧹 Purge Messages — Opens a modal to enter 1–100 messages to delete
Also available as standalone
/purge [amount]   — Bulk delete 1–100 messages directly
Security & Moderation

Auto-Moderation

Rextro's most powerful module — 14 independent filters that run silently on every message and user action.

Command
/automod   — Open the interactive AutoMod Dashboard (Admin only)

The dashboard provides a dropdown menu with the following options:

  • ⚙️ View Settings — See the current state of all 14 filters
  • 🎚️ Toggle Filters — Enable/disable individual filters
  • 🛡️ Deploy Native Rules — Deploy Discord's native AutoMod rules
  • 🚀 Bulk Deploy Rules — Deploy 10 rules at once for badge progress
  • 🗑️ Clear Native Rules — Remove all deployed native rules
Filter What it catches Default
Anti-Spam 5+ messages in 5 seconds from the same user ON
Anti-Duplicate Same message sent 3+ times in a row ON
Anti-Invite Discord invite links (discord.gg, discord.com/invite) ON
Anti-Caps Messages with 70%+ uppercase (min 10 chars) ON
Anti-Mass Mention 5+ users or roles pinged in a single message ON
Anti-Emoji Spam 10+ emojis in a single message ON
Anti-Ghost Ping Logs pings in messages that get deleted within 5 minutes ON
Anti-Zalgo Glitchy/corrupted Unicode text (50%+ zalgo chars) ON
Anti-Selfbot User-posted embeds (a sign of selfbot activity) ON
Anti-Links All external URLs (with whitelist support) OFF
Anti-Image Attachments/images outside allowed channels OFF
Anti-Hoisting Nicknames starting with special chars (!.-+"*) OFF
Anti-Status Invite Invite links in user status/activities OFF
Banned Words Custom word blacklist (uses word boundaries) OFF
Auto-Punishment: After 3 violations within an hour, Rextro automatically mutes the offender for 10 minutes. The threshold, action, and duration are all configurable.

Anti-Phishing Shield

Two-layer protection: Real-time phishing link detection AND an account age gate to stop raid bots before they enter.

🛡️ Anti-Raid Gate: Any account less than 24 hours old is automatically kicked on join. They receive a DM explaining why.

🔗 Link Scanner: Every message is scanned for known phishing patterns — Discord Nitro scams, Steam scams, fake gift links. On detection, the message is deleted and the user is timed out for 24 hours.

Anti-phishing runs automatically — no command needed. It's always active as a passive background listener.

Audit Logging

Every important server action is logged automatically to a configured channel. Uses Discord's built-in audit log events.

Logged Events Include: Member joins/leaves, message edits and deletes, role changes, channel modifications, kicks, bans, timeouts, and voice channel movements.

Configure the log channel in your server settings. Rextro logs events Discord's own audit log sometimes misses, like detailed message content before deletion.

Emergency Lockdown

A one-click emergency panel that can instantly lock every text channel in your server against raids or critical incidents.

Command
/emergency   — Open the Emergency Anti-Raid Console (Admin only)

The panel provides three instant actions:

  • 🔴 LOCKDOWN EVERYTHING — Removes @everyone's ability to send messages in ALL text channels simultaneously
  • 🟢 Lift Lockdown — Restores all channel permissions back to normal
  • 📱 Enable Highest Verification — Cranks the server verification level to require a verified phone number — stops raid bots cold

Shadow Realm

Banish a problematic user to a secret isolation channel. They remain in the server, can see channels, but are stripped of all roles. Their messages in #the-shadow-realm are deleted and mocked with dark flavour text.

Commands (requires Ban Members permission)
/banish [user] [reason?]  — Strip roles & isolate user in #the-shadow-realm
/unbanish [user]          — Restore all original roles and free the user

The bot automatically creates the "Banished" role and #the-shadow-realm channel if they don't already exist. Original roles are cached in memory and fully restored on /unbanish.

Message Sniper

Recover the last deleted or edited message in any channel. Great for catching rule-breakers who delete evidence.

Commands
/snipe       — Show the last deleted message in this channel
/editsnipe   — Show the before & after of the last edited message
Snipe data is stored in memory only — it clears when the bot restarts. Only one message per channel is cached at a time.

Interrogation Room

A custom captcha/verification system. New members are locked in an interrogation channel until they correctly answer a question you set. It auto-assigns the "Unverified" role blocking all channels until they pass.

Commands (Admin only)
/setup_interrogation         — Opens a modal to set the question & correct answer
/spawn_interrogation         — Posts the "Begin Interrogation" button in the channel
  • On joining, new members auto-receive the Unverified role (blocking all channels).
  • They click "Begin Interrogation 🕵️" in the designated channel.
  • A modal pops up with your custom question. Correct answer → role removed → access granted.
Community & Engagement

XP & Levels System

Automated XP tracking that rewards members for chatting. Members earn 20 XP per message with level progression following the formula: Level = 0.1 × √XP.

Commands
/rank [member?]           — View a rank card with Level, XP, and a progress bar
/setup_rewards [level] [role] — Auto-grant a Role when users reach a Level (Admin)

The rank card displays a visual 10-box progress bar (🟦⬛) showing progress to the next level, total XP, and member avatar. Level data is saved to levels.json and auto-synced every 2 minutes.

Welcome Images

Automatically sends a dynamically generated image card when a new member joins — featuring their circular avatar, username, server name, and member count.

Commands
/test_welcome   — Generate and preview your own welcome card (Admin only)

The welcome card is generated with Pillow (PIL) and automatically posts to the server's system channel, or any channel named #welcome or #general. Drop a welcome_bg.png file in the bot folder to use a custom background.

Reaction Roles

Deploy a role-selection panel using Discord's native Select Menu UI. Members pick their roles from a dropdown — selections toggle on/off (self-removing on second pick).

Command (Admin only)
/rolepanel [role1] [role2?] [role3?] [role4?] [role5?]
 — Create a role selection panel with up to 5 roles

Supports multi-select — members can pick multiple roles in a single interaction. Each role can be toggled on or off independently.

Suggestions & Polls

A structured system for community feedback and voting.

Commands
/suggest [idea]              — Submit a suggestion (opens a modal form)
/approve [id] [reason?]     — Approve a suggestion (requires Manage Messages)
/deny [id] [reason]         — Deny a suggestion with a reason
/poll [question]            — Create a simple Yes/No poll with voting buttons
/endpoll [message_id]       — Close a poll and display the final vote tally

Announcements

A full-featured announcement builder that opens an interactive modal. No need to manually build embeds.

Command (Admin only)
/announce   — Opens the announcement builder modal

The modal prompts for: Title, Message Body (up to 4000 chars), an optional Image URL, and a Ping type (everyone, here, or none). The result is a beautifully formatted embed sent to the current channel.

Staff Applications

A complete staff application and review system. Members apply through Discord's native modal UI and staff receive formatted submissions.

Command (Admin only)
/setup_applications [review_channel]
 — Deploys an "Apply Now" button panel. Submissions are sent to review_channel.

The application modal asks 3 questions: Age, Why do you want to be staff?, and Previous experience?. Staff in the review channel can click Approve or Deny — the applicant is automatically DM'd the result.

Utility & AI

Support Tickets

Professional-grade support ticket system with private channels, automatic transcripts, and delivery to the member's DMs.

Command (Admin only)
/setup_tickets   — Deploy the "Create Ticket" button panel in this channel
  • Clicking "Create Ticket 🎫" creates a private channel named ticket-[username] under a Tickets category.
  • Each ticket has a "Close & Save Transcript 🔒" button — clicking it generates a .txt transcript of all messages and DMs it to the ticket creator.
  • The channel is deleted 5 seconds after closing.
  • Prevents duplicate open tickets — if a user already has an open ticket, they're directed to it.

AI Image Generation

Tap into Pollinations AI to generate stunning 1024×1024 images from a text prompt with 6 distinct art styles.

Powered by Pollinations AI — Images are generated at 1024×1024 resolution in approximately 5 seconds.
Command
/imagine   — Opens the Image Studio with a style selection panel
Style Description
🎨 Artistic Impressionist oil painting style
📷 Realistic Hyperrealistic photograph
🌌 Fantasy Epic fantasy illustration
🤖 Sci-Fi Futuristic concept art
🦸 Anime Japanese anime illustration style
✏️ Sketch Detailed pencil/charcoal drawing

After selecting a style, a modal appears for you to type your prompt (max 300 chars). The bot generates the image and posts it with a 🔄 Regenerate button for variations. Retries automatically up to 3 times if the server is busy.

Smart Chat AI

An AI chatbot powered by Google Gemini 2.5-flash that maintains conversation history per channel and adapts both its tone and response length to match the user.

Commands
/set_ai_channel   — Set the current channel as the dedicated AI chat zone (Admin)
                  — In this channel, Rextro responds to EVERY message automatically.
/reset_ai         — Clear the AI's conversation memory for this channel (wipe history)

Outside of the designated channel, members can still chat with the AI by @mentioning the bot in any channel. Conversation history is maintained per-channel until /reset_ai is called or the bot restarts.

Dynamic Voice Channels

A "Join to Create" system — members join a hub voice channel and instantly get their own private temporary room, named [username]'s Room. The room auto-deletes when empty.

Commands (Admin only)
/setup_voice   — Creates a "🎙️ Temp Voice Channels" category with a
               "➕ Join to Create" hub channel automatically

Each created room gets a control panel embed with Lock 🔒 and Unlock 🔓 buttons. Only the room owner (or admins) can control it.

Server Analytics

Generate a real-time server health report from Discord's cache data — no database required.

Command (Admin only)
/analytics   — Generate a server health report with visual activity bar

The report includes: Total Members / Humans / Bots / Currently Online, New Joins in the last 7 days, Channel & Role counts, Server Boost tier, and a 🟩 visual activity ratio bar showing online vs. total members.

Temporary Roles

Assign a role that automatically removes itself after a specified duration. Runs a background check every minute — works even after bot restarts (data saved to temproles.json).

Command (requires Manage Roles)
/temprole [member] [role] [duration]
 — Duration format: 30m, 12h, 3d, 1w
 — Examples: /temprole @User @EventAccess 24h

Need Help?

Join the official Rextro support server for assistance, updates, and community support.

Join Support Server