Update messageDelete event

This commit is contained in:
Christer Warén 2022-04-06 22:11:15 +03:00
parent e38d14363e
commit 8d12a83691

View File

@ -4,6 +4,7 @@ module.exports = {
if(!msg.author.bot || !msg.guild) return; if(!msg.author.bot || !msg.guild) return;
const radio = client.radio.get(msg.guild.id); const radio = client.radio.get(msg.guild.id);
if(!radio) return; if(!radio) return;
if(!radio.message) return;
if(msg.id != radio.message.id) return; if(msg.id != radio.message.id) return;
radio.message = null; radio.message = null;
} }