Updated voiceStateUpdate

This commit is contained in:
Christer Warén 2021-08-04 14:40:06 +03:00
parent a5ffaadf31
commit e267b06cf1

View File

@ -37,12 +37,7 @@ module.exports = {
if (newState.channel !== radio.voiceChannel) {
change = true;
radio.voiceChannel = newState.channel;
/*radio.connection = getVoiceConnection(voiceChannel.guild.id) ??
joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: createDiscordJSAdapter(voiceChannel)
});*/
radio.connection = getVoiceConnection(voiceChannel.guild.id);
//radio.connection = await newState.channel.join();
}
}