Typescript Continuum

This commit is contained in:
Christer Warén
2023-06-05 00:13:15 +03:00
parent 0e62861e33
commit c584e3632e
33 changed files with 152 additions and 94 deletions

View File

@ -1,10 +1,11 @@
import { Message } from "discord.js";
import RadioClient from "../../Client";
export default {
name: 'messageDelete',
async execute(client: any, msg: Message) {
async execute(client: RadioClient, msg: Message) {
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.message) return;
if(msg.id != radio.message.id) return;