mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
merge fix
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
const Collection = require('../../util/Collection');
|
const Collection = require('../../util/Collection');
|
||||||
const Constants = require('../../util/Constants');
|
|
||||||
const Util = require('../../util/Util');
|
|
||||||
const VoiceConnection = require('./VoiceConnection');
|
const VoiceConnection = require('./VoiceConnection');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -36,18 +34,6 @@ class ClientVoiceManager {
|
|||||||
connection.channel = this.client.channels.get(channel_id);
|
connection.channel = this.client.channels.get(channel_id);
|
||||||
connection.setSessionID(session_id);
|
connection.setSessionID(session_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
options = Util.mergeDefault({
|
|
||||||
guild_id: channel.guild.id,
|
|
||||||
channel_id: channel.id,
|
|
||||||
self_mute: false,
|
|
||||||
self_deaf: false,
|
|
||||||
}, options);
|
|
||||||
|
|
||||||
this.client.ws.send({
|
|
||||||
op: Constants.OPCodes.VOICE_STATE_UPDATE,
|
|
||||||
d: options,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
2
typings
2
typings
Submodule typings updated: 997abfd2d5...3dbeb51fd2
Reference in New Issue
Block a user