From 0bc26f8895c3abd8edc44140ec0afe1bf7e8846e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 11 Sep 2021 17:34:50 +0300 Subject: [PATCH] Update Streamer class --- src/client/classes/Streamer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/classes/Streamer.js b/src/client/classes/Streamer.js index 4ddc216..90c3b02 100644 --- a/src/client/classes/Streamer.js +++ b/src/client/classes/Streamer.js @@ -16,12 +16,12 @@ module.exports = class { if(!client.stations) return; client.stations.forEach(station => { - const url = station.stream[station.stream.default]; this.play(station); }); } play(station) { + const url = station.stream[station.stream.default]; const audioPlayer = createAudioPlayer(); const resource = createAudioResource(url); audioPlayer.play(resource);