diff --git a/src/client/funcs/check.js b/src/client/funcs/check.js index cfbbbc5..e164cbb 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.config.maintenance){ + interaction.reply({ + content: client.messageEmojis["error"] + client.messages.maintenance, + ephemeral: true + }); + return false; + } if(!client.stations) { message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); interaction.reply({