diff --git a/src/client/commands/maintenance.js b/src/client/commands/maintenance.js index 5084903..6b0c3ed 100644 --- a/src/client/commands/maintenance.js +++ b/src/client/commands/maintenance.js @@ -32,8 +32,8 @@ module.exports = { if(currentRadio){ client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio); - currentRadio.connection.destroy(); - currentRadio.audioPlayer.stop(); + currentRadio.connection?.destroy(); + currentRadio.audioPlayer?.stop(); const cembed = new Discord.MessageEmbed() .setTitle(client.messages.maintenanceTitle) .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, ''))