mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 09:29:33 +00:00 
			
		
		
		
	Fix VoiceStateUpdate
This commit is contained in:
		@@ -21,8 +21,8 @@ module.exports = {
 | 
				
			|||||||
                    );
 | 
					                    );
 | 
				
			||||||
                } catch (error) {
 | 
					                } catch (error) {
 | 
				
			||||||
                    client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
					                    client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
				
			||||||
                    radio.connection.dispatcher.destroy();
 | 
					                    radio.connection.destroy();
 | 
				
			||||||
                    radio.voiceChannel.leave();
 | 
					                    radio.audioPlayer.stop();
 | 
				
			||||||
                    client.radio.delete(oldState.guild.id);
 | 
					                    client.radio.delete(oldState.guild.id);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
@@ -38,8 +38,8 @@ module.exports = {
 | 
				
			|||||||
                if (!radio || !radio.connection.dispatcher || !radio.connection.dispatcher === null) return;
 | 
					                if (!radio || !radio.connection.dispatcher || !radio.connection.dispatcher === null) return;
 | 
				
			||||||
                if (radio.voiceChannel.members.size === 1) {
 | 
					                if (radio.voiceChannel.members.size === 1) {
 | 
				
			||||||
                    client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
					                    client.funcs.statisticsUpdate(client, newState.guild, radio);
 | 
				
			||||||
                    radio.connection.dispatcher.destroy();
 | 
					                    radio.connection.destroy();
 | 
				
			||||||
                    radio.voiceChannel.leave();
 | 
					                    radio.audioPlayer.stop();
 | 
				
			||||||
                    client.radio.delete(newState.guild.id);
 | 
					                    client.radio.delete(newState.guild.id);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }, 120000);
 | 
					            }, 120000);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user