discord-vengeance
v1.0.1
Published
This package will make it easier to delete all the channels and roles and ban all the members in the server that you choose
Downloads
2
Readme
DiscordVengeance - The module of vengeance.
const { Client } = require('discord.js');
const { DiscordVengeance } = require('discord-vengeance');
const client = new Client();
const cleaner = new DiscordVengeance('1234567890', client, 'bot token');
//to delete all the roles
cleaner.deleteRoles().then(success => console.log(success)).catch(e => console.error(e.toString());
//to delete all channels
cleaner.deleteChannels().then(success > console.log(success)).catch(e => console.error(e.toString());
//to ban all members
cleaner.banMembers('reason for banning', 'what to say to members before banning them').then(success => console.log(sucess)).catch(e => console.error(e.toString());
//get the ID of the current guild you are cleaning
console.log(cleaner.getID);
//set the ID of the next guild you want to clean
cleaner.setID('newID');