From 0ef9cad101d83f603c1b7d56d9b0c0e289436c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 4 Aug 2021 14:57:02 +0300 Subject: [PATCH] Updated voiceStateUpdate --- src/client/events/voiceStateUpdate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/events/voiceStateUpdate.js b/src/client/events/voiceStateUpdate.js index ed8046b..7899630 100644 --- a/src/client/events/voiceStateUpdate.js +++ b/src/client/events/voiceStateUpdate.js @@ -2,6 +2,7 @@ const { getVoiceConnection, joinVoiceChannel } = require("@discordjs/voice"); +const { createDiscordJSAdapter } = require("../utils/adapter"); module.exports = { name: "voiceStateUpdate", @@ -23,7 +24,7 @@ module.exports = { try { setTimeout( async () => ( - radio.connection = await joinVoiceChannel({ + radio.connection = joinVoiceChannel({ channelId: oldState.channel.id, guildId: oldState.channel.guild.id, adapterCreator: createDiscordJSAdapter(oldState.channel)