mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 11:53:16 +00:00
Add maintenance mode to check function
This commit is contained in:
parent
3807ae89a0
commit
9c3748ad7c
@ -2,6 +2,13 @@ module.exports = function (client, interaction, command) {
|
|||||||
let message = {};
|
let message = {};
|
||||||
const radio = client.radio.get(interaction.guild.id);
|
const radio = client.radio.get(interaction.guild.id);
|
||||||
const permissions = interaction.channel.permissionsFor(interaction.user);
|
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) {
|
if(!client.stations) {
|
||||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
|
Loading…
Reference in New Issue
Block a user