1.0.1 • Published 6 years ago

discord-vengeance v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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');