From bf0811945ac857bfdb64fbd89d1ef816cbcd3ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 2 Sep 2021 16:50:16 +0300 Subject: [PATCH] Fixed statisticsUpdate in maintenance.js --- src/client/commands/maintenance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/commands/maintenance.js b/src/client/commands/maintenance.js index e4b836f..4da0981 100644 --- a/src/client/commands/maintenance.js +++ b/src/client/commands/maintenance.js @@ -26,7 +26,7 @@ module.exports = { currentRadio.guild = client.datastore.getEntry(radio.value).guild; if(currentRadio){ - client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio); + client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio); currentRadio.connection?.destroy(); currentRadio.audioPlayer?.stop(); const cembed = new Discord.MessageEmbed() @@ -37,7 +37,7 @@ module.exports = { .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); currentRadio.textChannel.send({ embeds: [cembed] }); client.radio.delete(radio.value); - stoppedRadios += "-" + radio.value + ": " + currentRadio.currentGuild.guild.name + "\n"; + stoppedRadios += "-" + radio.value + ": " + currentRadio.guild.name + "\n"; } radio = currentRadios.next(); }