This commit is contained in:
Amish Shah
2019-05-27 14:04:13 +01:00
parent 1ce670daa9
commit 949488bbbd

View File

@@ -433,7 +433,7 @@ class VoiceConnection extends EventEmitter {
* @private * @private
*/ */
onReady(data) { onReady(data) {
this.authentication = data; Object.assign(this.authentication, data);
for (let mode of data.modes) { for (let mode of data.modes) {
if (SUPPORTED_MODES.includes(mode)) { if (SUPPORTED_MODES.includes(mode)) {
this.authentication.mode = mode; this.authentication.mode = mode;