mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 00:29:33 +00:00 
			
		
		
		
	Updated maintenance command
This commit is contained in:
		@@ -29,13 +29,7 @@ module.exports = {
 | 
				
			|||||||
                client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
 | 
					                client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
 | 
				
			||||||
                currentRadio.connection?.destroy();
 | 
					                currentRadio.connection?.destroy();
 | 
				
			||||||
                currentRadio.audioPlayer?.stop();
 | 
					                currentRadio.audioPlayer?.stop();
 | 
				
			||||||
                const cembed = new Discord.MessageEmbed()
 | 
					                currentRadio.message?.delete();
 | 
				
			||||||
                    .setTitle(client.messages.maintenanceTitle)
 | 
					 | 
				
			||||||
                    .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, ''))
 | 
					 | 
				
			||||||
                    .setColor(client.config.embedColor)
 | 
					 | 
				
			||||||
                    .setDescription(client.messages.sendedMaintenanceMessage)
 | 
					 | 
				
			||||||
                    .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
 | 
					 | 
				
			||||||
                currentRadio.textChannel.send({ embeds: [cembed] });
 | 
					 | 
				
			||||||
                client.radio.delete(radio.value);
 | 
					                client.radio.delete(radio.value);
 | 
				
			||||||
                stoppedRadios += "-" + radio.value + ": " + currentRadio.guild.name + "\n";
 | 
					                stoppedRadios += "-" + radio.value + ": " + currentRadio.guild.name + "\n";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user