Changed the event handler

This commit is contained in:
2024-09-16 13:59:19 +02:00
parent 957536fb62
commit 50a70797b4
10 changed files with 20 additions and 54 deletions

View File

@@ -1,12 +1,8 @@
import { VoiceState } from "discord.js"
import { IEvent } from "interfaces"
export default {
name: "updatecache",
description: "Updates the voice states cache",
event: "voiceStateUpdate",
async execute(_o: VoiceState, n: VoiceState) {
async execute(_o, n) {
const guild = n.guild
if (!guild) return
@@ -15,4 +11,4 @@ export default {
guild.voiceStates.cache.delete(n.id)
}
}
} as IEvent
} as IEvent<"voiceStateUpdate">