mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 03:49:33 +00:00 
			
		
		
		
	Update voiceStateUpdate event
This commit is contained in:
		@@ -17,7 +17,7 @@ module.exports = {
 | 
			
		||||
                client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
			
		||||
                radio.connection?.destroy();
 | 
			
		||||
                radio.message?.delete();
 | 
			
		||||
                client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
 | 
			
		||||
                client.funcs.logger('Radio', newState.guild.id + " / " + 'Stop');
 | 
			
		||||
                return client.radio.delete(newState.guild.id);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@@ -39,7 +39,7 @@ module.exports = {
 | 
			
		||||
                    client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
			
		||||
                    radio.connection?.destroy();
 | 
			
		||||
                    radio.message?.delete();
 | 
			
		||||
                    client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
 | 
			
		||||
                    client.funcs.logger('Radio', newState.guild.id + " / " + 'Stop');
 | 
			
		||||
                    client.radio.delete(oldState.guild.id);
 | 
			
		||||
                }
 | 
			
		||||
                return;
 | 
			
		||||
@@ -58,7 +58,7 @@ module.exports = {
 | 
			
		||||
                    client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
			
		||||
                    radio.connection?.destroy();
 | 
			
		||||
                    radio.message?.delete();
 | 
			
		||||
                    client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
 | 
			
		||||
                    client.funcs.logger('Radio', newState.guild.id + " / " + 'Stop');
 | 
			
		||||
                    client.radio.delete(newState.guild.id);
 | 
			
		||||
                }
 | 
			
		||||
            }, 60000);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user