From 7ac777b2f6ba4c3cfd46280286fc39d1156ffb0b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Aug 2021 23:03:37 +0000 Subject: [PATCH 1/2] chore(deps): bump tar from 6.1.6 to 6.1.11 Bumps [tar](https://github.com/npm/node-tar) from 6.1.6 to 6.1.11. - [Release notes](https://github.com/npm/node-tar/releases) - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/node-tar/compare/v6.1.6...v6.1.11) --- updated-dependencies: - dependency-name: tar dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0974d00..421bf6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4667,9 +4667,9 @@ taffydb@2.6.2: integrity sha1-fLy2S1oUG2ou/CxdLGe04VCyomg= tar@^6.1.0: - version "6.1.6" - resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.6.tgz#c23d797b0a1efe5d479b1490805c5443f3560c5d" - integrity sha512-oaWyu5dQbHaYcyZCTfyPpC+VmI62/OM2RTUYavTk1MDr1cwW5Boi3baeYQKiZbY2uSQJGr+iMOzb/JFxLrft+g== + version "6.1.11" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" + integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== dependencies: chownr "^2.0.0" fs-minipass "^2.0.0" From 16484f461b0c381ec4dc0789080fe22023ede29d Mon Sep 17 00:00:00 2001 From: Hubert <19597269+HKGx@users.noreply.github.com> Date: Mon, 13 Sep 2021 18:15:27 +0200 Subject: [PATCH 2/2] fix(Player): don't change connection channel when random user joins --- src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.ts b/src/Player.ts index 2e3bbfc..51adb0e 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -76,7 +76,7 @@ class Player extends EventEmitter { const queue = this.getQueue(oldState.guild.id); if (!queue) return; - if (oldState.channelId && newState.channelId && oldState.channelId !== newState.channelId) { + if (oldState.channelId && newState.channelId && oldState.channelId !== newState.channelId && newState.member.id === newState.guild.me.id) { if (queue?.connection) queue.connection.channel = newState.channel; }