mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:13:17 +00:00
Update messageDelete event
This commit is contained in:
parent
e38d14363e
commit
8d12a83691
@ -1,9 +1,10 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'messageDelete',
|
name: 'messageDelete',
|
||||||
async execute(client, msg) {
|
async execute(client, msg) {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user