mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-01-24 04:43:42 +00:00
10 lines
296 B
JavaScript
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;
|
||
|
}
|
||
|
}
|