From d481afa581278c0d046965cc331787a338f5d86e Mon Sep 17 00:00:00 2001 From: Archaeopteryx <46562212+skdhg@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:11:30 +0545 Subject: [PATCH] fix(Player): set query cache properly --- packages/discord-player/src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord-player/src/Player.ts b/packages/discord-player/src/Player.ts index a02aca844..88a2eee88 100644 --- a/packages/discord-player/src/Player.ts +++ b/packages/discord-player/src/Player.ts @@ -67,7 +67,7 @@ export class Player extends PlayerEventsEmitter { connectionTimeout: 20000, smoothVolume: true, lagMonitor: 30000, - queryCache: options.queryCache === null ? null : new QueryCache(this), + queryCache: options.queryCache === null ? null : options.queryCache || new QueryCache(this), ...options, ytdlOptions: { highWaterMark: 1 << 25,