mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 11:43:38 +00:00
Limit Play command when on maintenance mode
This commit is contained in:
@ -13,6 +13,13 @@ export default {
|
|||||||
category: "radio",
|
category: "radio",
|
||||||
async execute(interaction: ChatInputCommandInteraction | StringSelectMenuInteraction, client: RadioClient) {
|
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) {
|
if(!client.stations) {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
|
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
|
||||||
|
Reference in New Issue
Block a user