From de8e8d09c24f367da0278e9ece8bc89355988b6e Mon Sep 17 00:00:00 2001
From: Jeroen Claassens <support@favware.tech>
Date: Thu, 5 Oct 2023 15:16:24 +0200
Subject: [PATCH] fix: fixed types for Node 20 types

---
 src/lib/structures/Listener.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/structures/Listener.ts b/src/lib/structures/Listener.ts
index e835632d4..25a2125a9 100644
--- a/src/lib/structures/Listener.ts
+++ b/src/lib/structures/Listener.ts
@@ -76,8 +76,9 @@ export abstract class Listener<E extends keyof ClientEvents | symbol = '', O ext
 		this.emitter =
 			typeof options.emitter === 'undefined'
 				? this.container.client
-				: (typeof options.emitter === 'string' ? (Reflect.get(this.container.client, options.emitter) as EventEmitter) : options.emitter) ??
-				  null;
+				: (typeof options.emitter === 'string'
+						? (Reflect.get(this.container.client, options.emitter) as EventEmitter)
+						: (options.emitter as EventEmitter)) ?? null;
 		this.event = options.event ?? this.name;
 		this.once = options.once ?? false;