Update list command

This commit is contained in:
Christer Warén 2021-09-09 18:54:23 +03:00
parent 22c0544d09
commit 526bb7736a

View File

@ -6,6 +6,7 @@ module.exports = {
category: 'radio',
execute(interaction, client) {
let message = {};
if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return interaction.reply({
@ -16,7 +17,7 @@ module.exports = {
const radio = client.radio.get(interaction.guild.id);
if(radio){
if(radio && !client.config.maintenance){
client.funcs.listStations(client, interaction);
} else {
let stations = `${client.stations.map(s => `**#** ${s.name}`).join('\n')}`