Guide to using the Discord Server Cloner API
The Discord Server Cloner is a Node.js API that enables copying roles, channels, categories, and emojis from a source Discord server to a target server using a self-bot. This tool is intended for server administrators to replicate server setups efficiently.
⚠️ Warning: Using self-bots violates Discord's Terms of Service and may result in account bans. Use at your own risk, and consider using an official bot account with Discord.js for compliance.
npm install express discord.js-selfbot-v13 axios
api/index.js and run it:
node api/index.js
public/index.html./clone, and docs at /.Clones a source Discord server to a target server, copying roles, channels, categories, and optionally emojis.
{
"token": "your_discord_token",
"guild_s": "source_guild_id",
"guild": "target_guild_id",
"clone_emojis": true
}
token: Discord user token (string, required).guild_s: Source server ID (string, numeric, required).guild: Target server ID (string, numeric, required).clone_emojis: Copy emojis (boolean, optional, defaults to false).
curl -X POST https://cloner.theatlantis.asia/clone \
-H "Content-Type: application/json" \
-d '{
"token": "your_discord_token",
"guild_s": "123456789012345678",
"guild": "987654321098765432",
"clone_emojis": true
}'
{ "message": "Sao chép server thành công", "status": "success" }
You can create a custom JavaScript tool to interact with the cloner API programmatically. Below is a sample script that sends a POST request to the /clone endpoint.
const axios = require('axios');
async function cloneServer(token, sourceGuildId, targetGuildId, cloneEmojis = false) {
try {
const response = await axios.post('https://cloner.theatlantis.asia/clone', {
token,
guild_s: sourceGuildId,
guild: targetGuildId,
clone_emojis: cloneEmojis,
}, {
headers: { 'Content-Type': 'application/json' },
});
console.log('Success:', response.data);
} catch (error) {
console.error('Error:', error.response ? error.response.data : error.message);
}
}
// Example usage
cloneServer(
'your_discord_token',
'123456789012345678',
'987654321098765432',
true
);
cloner-tool.js, and copy the script above.axios dependency:
npm install axios
your_discord_token, 123456789012345678, and 987654321098765432 with your actual token and guild IDs.node cloner-tool.js
process.argv for dynamic inputs.⚠️ Keep your token secure and never expose it in public code or repositories.
MANAGE_ROLES: To create/delete roles.MANAGE_CHANNELS: To create/delete channels and categories.MANAGE_EMOJIS_AND_STICKERS: To create emojis (if clone_emojis is true).MANAGE_GUILD: To edit guild name and icon.Ensure the account has these permissions in the target server to avoid 403 errors.