From c79281987259ce54df67be27b7c7eb80aad2da2e Mon Sep 17 00:00:00 2001 From: Xinos Date: Wed, 8 May 2024 00:53:01 +0700 Subject: [PATCH] fix client context --- src/utils/compendium.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/compendium.ts b/src/utils/compendium.ts index 2fb5e31a..7830a49d 100644 --- a/src/utils/compendium.ts +++ b/src/utils/compendium.ts @@ -12,8 +12,8 @@ if (compendiumClient) { } export default new Proxy(client, { - get(target: Client1 | Client2, p: string | symbol): unknown { - return client[p]; + get: function(target: Client1 | Client2, p: string | symbol, receiver: ProxyHandler): unknown { + return Reflect.get(target, p, receiver); }, });