mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 01:09:32 +00:00 
			
		
		
		
	Updated saveRadios function
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
module.exports =  async function saveRadios(client) {
 | 
					module.exports =  function saveRadios(client) {
 | 
				
			||||||
    let currentRadios = client.radio.keys();
 | 
					    let currentRadios = client.radio.keys();
 | 
				
			||||||
    let radio = currentRadios.next();
 | 
					    let radio = currentRadios.next();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
@@ -7,8 +7,8 @@ module.exports =  async function saveRadios(client) {
 | 
				
			|||||||
        currentRadio.guild = client.datastore.getEntry(radio.value).guild;
 | 
					        currentRadio.guild = client.datastore.getEntry(radio.value).guild;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
        if (currentRadio) {
 | 
					        if (currentRadio) {
 | 
				
			||||||
            await client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
 | 
					            client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
 | 
				
			||||||
            await client.funcs.saveState(client, currentRadio.guild, currentRadio);
 | 
					            client.funcs.saveState(client, currentRadio.guild, currentRadio);
 | 
				
			||||||
            currentRadio.connection?.destroy();
 | 
					            currentRadio.connection?.destroy();
 | 
				
			||||||
            currentRadio.audioPlayer?.stop();
 | 
					            currentRadio.audioPlayer?.stop();
 | 
				
			||||||
            currentRadio.message?.delete();
 | 
					            currentRadio.message?.delete();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user