From 13ae6c2716d0589f6dd3ec6ef58b3c42365fd426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 11 Sep 2021 17:15:04 +0300 Subject: [PATCH] Update next command --- src/client/commands/next.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/client/commands/next.js b/src/client/commands/next.js index ab3a0f0..345faa7 100644 --- a/src/client/commands/next.js +++ b/src/client/commands/next.js @@ -16,10 +16,7 @@ module.exports = { ephemeral: true }); - let url = station.stream[station.stream.default]; - client.funcs.statisticsUpdate(client, interaction.guild, radio); - radio.audioPlayer.stop(); let date = new Date(); radio.station = station; @@ -27,13 +24,12 @@ module.exports = { radio.startTime = date.getTime(); if(interaction.isCommand()) { - client.funcs.play(interaction, interaction.guild, client, url); + client.funcs.play(client, interaction, interaction.guild, station); } if(interaction.isButton()) { interaction.deferUpdate(); - client.funcs.play(null, interaction.guild, client, url); + client.funcs.play(client, null, interaction.guild, station); } - } } }