mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-03 23:14:40 +00:00 
			
		
		
		
	Update list command
This commit is contained in:
		@@ -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')}`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user