import { Invite } from "discord.js" ; import { EventHandler } from "../base/EventHandler" ; export default class InviteDeleteHandler extends EventHandler { async invoke ( invite ) { const currentInvites = this . client . guildInvites . get ( invite . guild . id ) ; if ( ! currentInvites ) return ; currentInvites . delete ( invite [ 0 ] ) ; this . client . guildInvites . set ( invite . guild . id , currentInvites ) ; } }