mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-04-19 07:24:48 +00:00
15 lines
430 B
TypeScript
15 lines
430 B
TypeScript
import { Message } from "discord.js";
|
|
import RadioClient from "../../Client";
|
|
|
|
export default {
|
|
name: 'messageDelete',
|
|
async execute(client: RadioClient, msg: Message) {
|
|
if(!msg.author.bot || !msg.guild) return;
|
|
const radio = client.radio?.get(msg.guild.id);
|
|
if(!radio) return;
|
|
if(!radio.message) return;
|
|
if(msg.id != radio.message.id) return;
|
|
radio.message = null;
|
|
}
|
|
}
|