how to make a purge command discord js

Solutions on MaxInterview for how to make a purge command discord js by the best coders in the world

showing results for - "how to make a purge command discord js"
Alejandro
23 Mar 2018
1var amount = parseInt(args[0])
2
3        if (!amount) return message.channel.send("Please specify the amount of messages you want me to delete")
4        if (amount > 100 || amount < 1) return message.channel.send("Please select a number *between* 100 and 1")
5
6        message.channel.bulkDelete(amount).catch(err => {
7              message.channel.send(':x: Due to Discord Limitations, I cannot delete messages older than 14 days') })
8
9        let msg = await message.channel.send(`Deleted \`${amount}\` messages`)
10        setTimeout(() => {
11            msg.delete()
12        }, 2000)
Amina
30 May 2019
1case 'clear':
2            if(!args[1]) return message.reply ('Error, please define second argument')
3            message.channel.bulkDelete(args[1]);
queries leading to this page
discord js v12 purge commanddiscord js purge messageshow to make purge command discord jspurge discord jspurge command discord js v12discord js purgepurge command discord jsdiscord js how to purgepurge channel discord jshow to make a purge all command for discord jspurge command discord jsclient on purge discorddiscord js 5cpurge commandpurge command discord js codesimple purge discord jshow to make a purge commandpurge code command jsdiscord js purge command limitdiscord purge command codeuser purge discord jsdiscord purge codediscord js how to purge memberspurge command discord jsdiscord js advanced purgepurge messages discord jsdiscordjs purge commanddiscordjs nodejs purge commanddiscord js simple purge command with embeddiscord purge messages command in jsdiscord message purger jsdiscord js how to purgehow to code a purge command discord jshow to make a purge all command 22discord js 22purge discordjsdiscord js purge messages from userdiscord js purge command v12discord js purge commandpurge command discordjsdiscord js advanced purgepurge command discord js latestpurge command 24 7bprefix 7dpurgediscord bot purge command codedsicord js purge bot messagesmaking a purge command discord jspurge discord codeundetectable purge command discord jsjava scrip purge messsages discord botdiscord js purge command v11purge in discord jsdiscord js purge command command 3d 3d 3d purgeauto purge command discordjshow to make a purge command in discord jshow to purge discord jsdiscord js simple purge commanddiscord js purge command codediscord bot purge commandpurge function discordjspurge command discord js v11discord js purgediscord js purge commanddiscord js purge commandhow to make a purge command discord jshow to create purge command discord jsdiscord js purge command 200 longdiscord js how to use the purge function how to make a purge command discord js