Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.auth = 1
- exports.run = (client, message, args) => {
- let num = parseInt(args);
- message.channel.bulkDelete(num+1)
- .then(messages => console.log(`Bulk deleted ${num} messages`))
- .catch(console.error);
- message.channel.send(`Deleted ${num} messages!`);
- message.delete(5000);
- };
Add Comment
Please, Sign In to add comment