From 526bb7736a0de8d93f838df422dc1b0e349f9361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 9 Sep 2021 18:54:23 +0300 Subject: [PATCH] Update list command --- src/client/commands/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/commands/list.js b/src/client/commands/list.js index 47edaee..59772f0 100644 --- a/src/client/commands/list.js +++ b/src/client/commands/list.js @@ -6,6 +6,7 @@ module.exports = { category: 'radio', execute(interaction, client) { let message = {}; + if(!client.stations) { message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); return interaction.reply({ @@ -16,7 +17,7 @@ module.exports = { const radio = client.radio.get(interaction.guild.id); - if(radio){ + if(radio && !client.config.maintenance){ client.funcs.listStations(client, interaction); } else { let stations = `${client.stations.map(s => `**#** ${s.name}`).join('\n')}`