mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-01-11 08:05:46 +00:00
Limit commands in maintenance mode
This commit is contained in:
@@ -8,6 +8,13 @@ export default {
|
||||
category: 'radio',
|
||||
execute(interaction: ButtonInteraction | 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, {
|
||||
|
||||
Reference in New Issue
Block a user