mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 06:49:32 +00:00 
			
		
		
		
	Update voiceStateUpdate.js
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
    name: 'voiceStateUpdate',
 | 
			
		||||
    async execute(client, oldState, newState) {
 | 
			
		||||
        console.log('voicesateupate')
 | 
			
		||||
        let change = false;
 | 
			
		||||
        const radio = client.radio.get(newState.guild.id);
 | 
			
		||||
        if (!radio) return;
 | 
			
		||||
@@ -20,7 +19,6 @@ module.exports = {
 | 
			
		||||
        if (oldState.channel === null) return;
 | 
			
		||||
        if (oldState.channel.members.size === 1 && oldState.channel === radio.voiceChannel || change) {
 | 
			
		||||
            setTimeout(() => {
 | 
			
		||||
                console.log('timeout')
 | 
			
		||||
                if (!radio) return;
 | 
			
		||||
                if (radio.voiceChannel.members.size === 1) {
 | 
			
		||||
                    radio.songs = [];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user