From 05905e6e6d042b5faf37cdb25748bcbb54e7535d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 11 Sep 2021 17:13:47 +0300 Subject: [PATCH] Update restoreRadios function --- src/client/funcs/restoreRadios.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/funcs/restoreRadios.js b/src/client/funcs/restoreRadios.js index 10aff24..15432d3 100644 --- a/src/client/funcs/restoreRadios.js +++ b/src/client/funcs/restoreRadios.js @@ -1,6 +1,5 @@ import Discord from "discord.js"; const { - createAudioPlayer, getVoiceConnection, joinVoiceChannel } = require("@discordjs/voice"); @@ -26,7 +25,6 @@ module.exports = async function restoreRadios(client, guilds) { voiceChannel: client.channels.cache.get(state.channels.voice), connection: null, message: null, - audioPlayer: createAudioPlayer(), station: station }; client.radio.set(guild.id, construct); @@ -44,7 +42,7 @@ module.exports = async function restoreRadios(client, guilds) { let date = new Date(); construct.startTime = date.getTime(); - client.funcs.play(null, guild, client, url, Discord); + client.funcs.play(client, null, guild, station); client.datastore.checkEntry(guild.id); construct.datastore = client.datastore.getEntry(guild.id);