mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Fix #3218
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user