forked from embee/woomy
		
	fix
This commit is contained in:
		
							parent
							
								
									e7ed288139
								
							
						
					
					
						commit
						3956eb6fae
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -16,6 +16,9 @@ module.exports = (client, oldState, newState) => {
 | 
				
			||||||
                            if(guild.voiceChannel.members.size == 1 && guild.autoDisconnect) {
 | 
					                            if(guild.voiceChannel.members.size == 1 && guild.autoDisconnect) {
 | 
				
			||||||
                                setTimeout(() => {
 | 
					                                setTimeout(() => {
 | 
				
			||||||
                                    if(guild.voiceChannel.members.size == 1 && guild.autoDisconnect) {
 | 
					                                    if(guild.voiceChannel.members.size == 1 && guild.autoDisconnect) {
 | 
				
			||||||
 | 
					                                        guild.playing = false;
 | 
				
			||||||
 | 
					                                        guild.queue = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                                        // Probably should be async? But no need here I think
 | 
					                                        // Probably should be async? But no need here I think
 | 
				
			||||||
                                        guild.dispatcher.end('silent');
 | 
					                                        guild.dispatcher.end('silent');
 | 
				
			||||||
                                        guild.message.channel.send('No one is listening to me. Leaving voice chat!');
 | 
					                                        guild.message.channel.send('No one is listening to me. Leaving voice chat!');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue