eximiabots-radiox/src/client/events/messageDelete.js
2021-09-02 14:39:23 +03:00

10 lines
296 B
JavaScript

module.exports = {
name: 'messageDelete',
async execute(client, msg) {
if (!msg.author.bot || !msg.guild) return;
const radio = client.radio.get(msg.guild.id);
if (!radio) return;
if(msg.id != radio.message.id) return;
radio.message = null;
}
}