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,9 +1,6 @@
import { ClientEvents } from "discord.js"
export default interface IEvent {
name: string
description: string
event: keyof ClientEvents
disabled?: boolean
execute(...args: any[]): void
export default interface IEvent<E extends keyof ClientEvents> {
event: E
execute(...args: ClientEvents[E]): void
}