2.0.5 • Published 3 years ago
discord-raid-toolkit-revamp v2.0.5
const Discord = require('discord.js') //we require discord
const client = new Discord.Client() //setting/creating a new discord client (bot)
const Disc_rd = require('discord-raid-toolkit-revamp')
const raid = new Disc_rd.RaidBot(client) //here we pass client parameter, as you see i set it as client because that is the name i put it as in const **client**
client.on('message', async message => {
if(message.content.startsWith('!deletechannels')) {
await raid.deleteAllChannels(message.guild.id) //deleting every channel in the guild with the id provided, in this case, the current guild where command was executed
}
})
client.login('Your very very secret token')
+
- Btw there was a typo in set up code, please re-copy paste it and then it will work as expected
+
- Added banAll(guild_id, reason) - Btw, reason in every function is always optional, Just remembering ya