From 33e4a416a9c5d1e2661a3408192c9d9eb8d8c7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 6 Sep 2021 21:46:59 +0300 Subject: [PATCH] Updated saveRadios function --- src/client/funcs/saveRadios.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/funcs/saveRadios.js b/src/client/funcs/saveRadios.js index 5311727..30280e1 100644 --- a/src/client/funcs/saveRadios.js +++ b/src/client/funcs/saveRadios.js @@ -1,4 +1,4 @@ -module.exports = async function saveRadios(client) { +module.exports = function saveRadios(client) { let currentRadios = client.radio.keys(); let radio = currentRadios.next(); @@ -7,8 +7,8 @@ module.exports = async function saveRadios(client) { currentRadio.guild = client.datastore.getEntry(radio.value).guild; if (currentRadio) { - await client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio); - await client.funcs.saveState(client, currentRadio.guild, currentRadio); + client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio); + client.funcs.saveState(client, currentRadio.guild, currentRadio); currentRadio.connection?.destroy(); currentRadio.audioPlayer?.stop(); currentRadio.message?.delete();