blob: 6d2de4062429fee5feca0b32f82e74cbf7fbde4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module.exports = (bot, msgs) => {
const { RichEmbed } = require('discord.js');
try {
const embed = new RichEmbed()
.setColor(0x00ae86)
.setTitle(`:wastebasket: ${msgs.size}`)
.setDescription(`${msgs.size} messages in *${msgs.first().channel}* were bulk deleted.`)
.setTimestamp()
.setFooter('Messages purged');
msgs.first().guild.channels.find('name', 'logs').send({ embed });
}
catch (err) {
console.error(err.stack);
}
};
|