Limit Play command when on maintenance mode

This commit is contained in:
Christer Warén committed 2023-06-08 00:31:13 +03:00
1 parent b5caeb7cd3
commit 6de5e69dc0
1 file changed
+7
+7
View File
@@ -13,6 +13,13 @@ export default {
category: "radio",
async execute(interaction: ChatInputCommandInteraction | StringSelectMenuInteraction, client: RadioClient) {
if(client.config.maintenanceMode){
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
});
}
if(!client.stations) {
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {