fix(Player): don't change connection channel when random user joins
This commit is contained in:
parent
7ac777b2f6
commit
16484f461b
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Player extends EventEmitter<PlayerEvents> {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue