mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 15:29:31 +00:00 
			
		
		
		
	Update list command
This commit is contained in:
		@@ -6,6 +6,7 @@ module.exports = {
 | 
				
			|||||||
    category: 'radio',
 | 
					    category: 'radio',
 | 
				
			||||||
    execute(interaction, client) {
 | 
					    execute(interaction, client) {
 | 
				
			||||||
        let message = {};
 | 
					        let message = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        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);
 | 
				
			||||||
            return interaction.reply({
 | 
					            return interaction.reply({
 | 
				
			||||||
@@ -16,7 +17,7 @@ module.exports = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        const radio = client.radio.get(interaction.guild.id);
 | 
					        const radio = client.radio.get(interaction.guild.id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if(radio){
 | 
					        if(radio && !client.config.maintenance){
 | 
				
			||||||
            client.funcs.listStations(client, interaction);
 | 
					            client.funcs.listStations(client, interaction);
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            let stations = `${client.stations.map(s => `**#** ${s.name}`).join('\n')}`
 | 
					            let stations = `${client.stations.map(s => `**#** ${s.name}`).join('\n')}`
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user