From ea2be5d5fb09637d20ac10015c221726ccf3385e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 Sep 2021 03:33:48 +0300 Subject: [PATCH] Updated check function --- src/client/funcs/check.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client/funcs/check.js b/src/client/funcs/check.js index e7987ed..5e8222f 100644 --- a/src/client/funcs/check.js +++ b/src/client/funcs/check.js @@ -2,6 +2,13 @@ module.exports = function (client, interaction, command) { let message = {}; const radio = client.radio.get(interaction.guild.id); const permissions = interaction.channel.permissionsFor(interaction.user); + if(!client.stations) { + message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); + return interaction.reply({ + content: client.messageEmojis["error"] + message.errorToGetPlaylist, + ephemeral: true + }); + } if (!radio) { interaction.reply({ content: client.messageEmojis["error"] + client.messages.notPlaying,