eximiabots-radiox/src/client/events/messageDelete.js

10 lines
296 B
JavaScript
Raw Normal View History

2021-09-02 11:39:23 +00:00
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;
}
}