From 645ea3e1975452caf3eced526e9bcc9ba13de8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 11 Sep 2021 17:14:55 +0300 Subject: [PATCH] Update prev command --- src/client/commands/prev.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/client/commands/prev.js b/src/client/commands/prev.js index 78ac583..3db911b 100644 --- a/src/client/commands/prev.js +++ b/src/client/commands/prev.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,11 +24,11 @@ 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); } }