xDefender Documentation

Advanced Security Bot for Discord Servers

v3.9.1 33 protection modules Free

Pick a command or module in the sidebar to get started.

Quick Start

1. Run /config → General Settings → set the log channel
2. Enable protections category by category
3. Optional: /wh add trusted staff for restricted modules (🔒)
4. Browse Commands and Protections in the sidebar

Statistics

Protected Servers...
Protected Users...
Bot Latency...
IA Latency...
Custom Bot...

Current Status

StatusOnline & Operational
Versionv3.9.1
Discord.js Version...
Shards...
StatusFree

Custom bot

Host your own xDefender instance from your account on the website

Sign in on the website

Registration and management of a custom bot are done on the official xDefender site. You must be logged in to access the dashboard.

If you are not authenticated, you will be redirected to the login page. After logging in, open the custom bot area from your account.

Discord application & bot

Go to the Discord Developer Portal, click « New Application », give it a name, and create it. This application will become your bot.

In your application, go to « Bot » in the sidebar. Click « Add Bot ». Then enable the 3 Privileged Gateway Intents required for xDefender:

Presence Intent
Required for status roles and presence tracking
Server Members Intent
Required for member join/leave logs and anti-double account
Message Content Intent
Required for anti-spam, message logs and content moderation

All 3 intents must be enabled. Without them, the bot will not work correctly.

Bot token

In the « Bot » tab: copy your token (click « Reset Token » if needed, and keep it secret).

Never share your token. Anyone with it can control your bot.

Register your bot on the dashboard

From the site (while logged in), open the custom bot section and submit your bot token in the secure form. Your bot is registered and deployed from there — you no longer use Discord slash commands for this step.

The dashboard asks for your bot token only. Data is only sent over HTTPS to the official xDefender domain.

Never enter your token on a site other than xdefender.fr. If you are sent elsewhere, it is not an official flow.

Customize your bot

From the same dashboard you can change the name, avatar, banner and other settings of your custom bot, without going through Discord support channels.

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