mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Update voiceConnections on destroy
Instead of manually removing VoiceConnections from InternalClient.voiceConnections, just integrate the functionality into VoiceConnection.destroy()
This commit is contained in:
@@ -105,6 +105,7 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
self_deaf: false
|
||||
}
|
||||
});
|
||||
this.client.internal.voiceConnections.remove(this);
|
||||
};
|
||||
|
||||
VoiceConnection.prototype.stopPlaying = function stopPlaying() {
|
||||
|
||||
Reference in New Issue
Block a user