xDefender Documentation

Advanced Security Bot for Discord Servers

Welcome to the xDefender documentation! xDefender is a powerful bot providing modular security protections against raids, spam, malicious links, and more. All interactions are handled via slash commands.

๐Ÿ“ˆ Statistics

Protected Servers...
Protected Users...
Active Channels...
API Latency...

๐Ÿ›ก๏ธ Current Status

StatusOnline & Operational
Versionv3.5
StatusAccess Bot Customizable
StatusFree

Commands

All features are accessible via slash commands (e.g. /config, /help, /wh add).

General Commands

/help
Show the help menu with all available commands
/bot-info
Displays bot status, version, and uptime
/config
Modify all bot settings: protection modules, rate limits, logging, whitelist, and more

Whitelist & Blacklist Management

/wh
Manage whitelisted users. Only server owners can add via /wh add
/wh add
Add a user to the whitelist. Only available to server owners
/wh list
List all whitelisted users
/wh rm
Remove a user from the whitelist. Only available to server owners
/bl
Manage blacklist settings to block users
/bl add
Add a user to the blacklist to block them from using bot commands
/bl list
List all blacklisted users
/bl rm
Remove users from the blacklist && unban them

System Information

Technical details about xDefender

โš™๏ธ Technical Stack

Discord.js Versionv14.25.1
PlatformLinux
Bot Versionv3.5

๐Ÿ“Š Server Statistics

Total Servers...
Total Users...
Active Channels...

Configuration

Complete configuration guide for all xDefender modules

๐ŸŒ Multi-Language Support

xDefender supports multiple languages for better accessibility and user experience. The bot interface and responses are available in:

๐Ÿ‡ซ๐Ÿ‡ท Franรงais
Interface complรจte en franรงais avec toutes les commandes et messages traduits
๐Ÿ‡ฌ๐Ÿ‡ง English
Full English interface with all commands and messages in English
๐Ÿ‡ช๐Ÿ‡ธ Espaรฑol
Interfaz completa en espaรฑol con todos los comandos y mensajes traducidos
๐Ÿ‡ฉ๐Ÿ‡ช Deutsch
Vollstรคndige deutsche Benutzeroberflรคche mit allen Befehlen und Nachrichten รผbersetzt
โœ“ Language Selection: Use /config language to change the bot's language
๐ŸŒ Auto-Detection: The bot can automatically detect server language preferences

Anti-Spam Configuration

๐Ÿšซ Anti-Spam Protections

xDefender's Anti-Spam system lets you configure advanced protections against spam, links, and unwanted invites. You can also customize rate limits and allow spam in selected channels.

Spam Detection
Automatically detects and blocks users sending messages too fast. Ideal to prevent flood or raid attempts or MassPing or GhostPing.
Invite Link Blocker
Blocks Discord invite links across the server. Helps prevent users from promoting other servers.
Malicious Link Filter
Detects and removes suspicious or harmful URLs, including scam links and trackers.
Message Rate Limit
Customize how many messages a user can send per second. Useful to prevent spam while allowing active users to chat.
Whitelisted Channels
Exclude specific channels from anti-spam checks. Perfect for self-promotion, bot commands, or high-traffic areas.
Anti-Double Account
Detects and prevents users from joining with multiple accounts. Helps maintain server integrity and prevent abuse.
Anti-@everyone
Prevents abuse of @everyone and @here mentions. Protects your server from mass ping spam and notification abuse.
โœ“ Access Level: You have access to all protections in this category
๐Ÿ”’ Requirement: Requires whitelist/owner access

AutoMod Configuration

๐Ÿค– AutoMod Protections

Configure automated moderation for your server

๐Ÿ›ก๏ธ Invite Link Blocking
Blocks Discord invite links (e.g. discord.gg, discord.com/invite)
๐Ÿ”ž Dangerous/Adult Links Filtering
Blocks dangerous, adult or pornographic links (e.g. http, https, .xyz, .xxx, pornhub, redtube, xvideos, youporn, etc.)
๐Ÿคฌ Bad Words Filter
Blocks messages containing bad words (customizable language)
๐Ÿ‘ค Anti-Double Account
Detects and prevents users from joining with multiple accounts from the same IP or device
+ AutoSetup will create all native Discord rules

Server Protection Configuration

๐Ÿ›ก๏ธ Server Protection

Configure server-level protections

antiChannelDelete
Prevents unauthorized channel deletions - Available to administrators
antiRoleDelete
Prevents unauthorized role deletions - Available to administrators
antiMassCreateChannel
Prevents mass creation of channels - Available to administrators
antiMassCreateRole
Prevents mass creation of roles - Available to administrators
antiServerEdit ๐Ÿ”’
Protects server settings from changes - Restricted to whitelist & owner
antiPermissions ๐Ÿ”’
Monitors dangerous permission changes - Restricted to whitelist & owner
๐Ÿ”ง Auto Channel Restore
Status: Enabled
+ Automatically recreates deleted channels with original permissions
+ Works when antiChannelDelete is enabled
๐Ÿ”ง Auto Role Restore
Status: Enabled
+ Automatically recreates deleted role with original permissions
+ Works when antiRoleDelete is enabled

Anti-Raid Configuration

๐Ÿ›ก๏ธ Anti-Raid Protections

Configure comprehensive raid protection

antiBot ๐Ÿ”’
Blocks unauthorized bots from joining - Restricted to whitelist & owner
antiMassban
Prevents mass banning of members - Available to administrators
antiWebhook
Protects against webhook abuse - Available to administrators
raidMode
Protects your server from mass account join spam โ€” Admins only
antiApplicationExternal
Blocks external applications from accessing your server - Restricted to whitelist & owner
antiNewAccount
Prevents new accounts from joining (configurable age threshold) - Available to administrators
โœ“ Access Level: You have access to all protections in this category
๐Ÿ”’ Requirement: Requires whitelist/owner access

Backup System Configuration

๐Ÿ“ฆ Backup System

Create, load, and manage complete server backups

โž• Create Backup
Create a complete backup of your server configuration including roles, channels, and permissions
๐Ÿ“‹ List Backups
View all available backups for your server
๐ŸŒฑ Load Backup
Restore your server from a previously created backup
โŒ Delete Backup
Remove a backup from your server's backup list
โฌ†๏ธ Export Backup
Export a backup file to transfer between servers
โฌ‡๏ธ Import Backup
Import a backup file from another server
+ Backup Features:
โ€ข Backup all roles and their permissions
โ€ข Backup all channels and their permissions
โ€ข Backup all categories
โ€ข Export/Import to transfer between servers

Logs Configuration

Setup comprehensive logging system for your server

๐Ÿ“ Log Channel Setup

Configure the log channel for all bot actions

Current Status
โŒ No log channel configured
Current Log Channel: Not Set
โš ๏ธ Important: Only the server owner can modify log settings
+ Choose a channel from the menu below

โœ… Logging System Setup Complete

Example of successful log configuration

+ Log category created: ๐Ÿ“‹ xDefender Logs
+ 6 log channels configured

๐Ÿ“‚ Log Channels

๐Ÿ›ก๏ธ #mod-logs
Moderation actions and user punishments
๐Ÿ’ฌ #message-logs
Message edits, deletions, and content monitoring
๐Ÿฐ #server-logs
Server settings changes and administrative actions
๐Ÿ‘ฅ #member-logs
Member joins, leaves, and profile changes
๐Ÿ“ #channel-logs
Channel creation, deletion, and permission changes
๐ŸŽญ #role-logs
Role creation, deletion, and assignment changes
๐Ÿ“š Next Steps:
All log channels have been created and configured. You can now return to the main menu.

Join Our Community

Connect with other server administrators and get support

xDefender Community

Official Discord server for support, updates, and community

Team

Meet the developers behind xDefender

Crafted with โค๏ธ by Kurama & MerlinCode