From 490b2f179294e3f040a9870e862352ec78453aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 21 Jan 2021 14:21:25 +0200 Subject: [PATCH] DIspatcher nullable in maintenance command --- client/commands/maintenance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/commands/maintenance.js b/client/commands/maintenance.js index e311f0e..405baab 100644 --- a/client/commands/maintenance.js +++ b/client/commands/maintenance.js @@ -27,7 +27,7 @@ module.exports = { if(currentRadio){ client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio); - currentRadio.connection.dispatcher.destroy(); + currentRadio.connection.dispatcher?.destroy(); currentRadio.voiceChannel.leave(); const cembed = new Discord.MessageEmbed() .setTitle(client.messages.maintenanceTitle)