mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 16:22:08 +00:00
Fix #3218
This commit is contained in:
parent
1ce670daa9
commit
949488bbbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue