mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Updated voiceStateUpdate
This commit is contained in:
parent
07e45ae54d
commit
0ef9cad101
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user