From c22dddc95b5ea10ab8740a9b0af77a7d2bc9ce0c Mon Sep 17 00:00:00 2001 From: paras makwana Date: Wed, 31 Jul 2024 19:42:13 +0000 Subject: [PATCH] fix connection update --- dist/src/Player/Connection.js | 1 - dist/src/Player/Connection.js.map | 2 +- src/Player/Connection.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dist/src/Player/Connection.js b/dist/src/Player/Connection.js index 5fcf57a9..e692ca81 100644 --- a/dist/src/Player/Connection.js +++ b/dist/src/Player/Connection.js @@ -49,7 +49,6 @@ class Connection { data: { voice: this.voice }, }); setTimeout(async () => { - await this.player.pause(false); await this.player.node.rest.updatePlayer({ guildId: this.player.guildId, data: { paused: false }, diff --git a/dist/src/Player/Connection.js.map b/dist/src/Player/Connection.js.map index 883b070e..db7117cb 100644 --- a/dist/src/Player/Connection.js.map +++ b/dist/src/Player/Connection.js.map @@ -1 +1 @@ -{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../src/Player/Connection.ts"],"names":[],"mappings":";;;AAOC,CAAC;AAgCD,CAAC;AAEF;;;;;;;GAOG;AACH,MAAa,UAAU;IACZ,MAAM,CAAS;IACf,SAAS,CAAgB;IACzB,MAAM,CAAgB;IACtB,KAAK,CAA2C;IAChD,SAAS,CAAU;IACnB,SAAS,CAAU;IAE1B;;;OAGG;IACH,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG;YACT,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB,CAAC,IAAkB;QAC5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GAAG,IAAI,CAAC;QAC9D,IACI,IAAI,CAAC,MAAM,CAAC,YAAY;YACxB,UAAU;YACV,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,UAAU,EACzC,CAAC;YACC,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,UAAU,CAAC;QAC1C,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,UAAU,IAAI,IAAI,CAAC;IAC9C,CAAC;IAAA,CAAC;CACL;AA1ED,gCA0EC;AAAA,CAAC"} \ No newline at end of file +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../src/Player/Connection.ts"],"names":[],"mappings":";;;AAOC,CAAC;AAgCD,CAAC;AAEF;;;;;;;GAOG;AACH,MAAa,UAAU;IACZ,MAAM,CAAS;IACf,SAAS,CAAgB;IACzB,MAAM,CAAgB;IACtB,KAAK,CAA2C;IAChD,SAAS,CAAU;IACnB,SAAS,CAAU;IAE1B;;;OAGG;IACH,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG;YACT,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB,CAAC,IAAkB;QAC5C,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QAEzE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ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SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,UAAU,IAAI,IAAI,CAAC;IAC9C,CAAC;IAAA,CAAC;CACL;AAzED,gCAyEC;AAAA,CAAC"} \ No newline at end of file diff --git a/src/Player/Connection.ts b/src/Player/Connection.ts index 22c462be..4447793a 100644 --- a/src/Player/Connection.ts +++ b/src/Player/Connection.ts @@ -88,7 +88,6 @@ export class Connection { data: { voice: this.voice }, }); setTimeout(async () => { - await this.player.pause(false) await this.player.node.rest.updatePlayer({ guildId: this.player.guildId, data: { paused: false },