mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 15:43:38 +00:00
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
import { Message, PartialMessage } from "discord.js";
|
|
import RadioClient from "../../Client";
|
|
|
|
export default function messageDelete(client: RadioClient, msg: Message | PartialMessage){
|
|
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;
|
|
}
|