A Python script for cloning Discord server structure including roles, channels, and permissions.
- 🗂️ Replicates complete server structure
- 🔄 Maintains role hierarchy and permissions
- 📁 Copies categories and channels with exact settings
- ⚙️ Configurable through console input
- ✅ Error handling and permission validation
- Python 3.8+
- discord.py library (
pip install discord.py) - Bot token with:
- Administrator permissions
- Enabled privileged intents:
- Server Members Intent
- Message Content Intent
git clone [repository-url]
cd py-clone
pip install discord.py- Replace
YOUR_BOT_TOKEN_HEREinunified_clone.py - Run the script:
python unified_clone.py- Follow the console prompts to:
- Enter source and target server IDs
- Confirm destructive operation
- Monitor cloning progress
# Bot setup
TOKEN = "YOUR_BOT_TOKEN_HERE"
intents = discord.Intents.default()
intents.guilds = True
intents.guild_messages = True
intents.message_content = True- Permanently delete all existing roles/channels in target server
- Require bot administrator privileges
- Perform destructive operations that cannot be undone
❗ Always test with a backup server first