forked from embee/woomy
		
	Leave if no one is listening
This commit is contained in:
		
							parent
							
								
									69815dbdf2
								
							
						
					
					
						commit
						e7ed288139
					
				
					 2 changed files with 26 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -66,6 +66,7 @@ exports.getVideoByQuery = async function (client, query) {
 | 
			
		|||
 | 
			
		||||
exports.play = async function (client, message, query, ignoreQueue) {
 | 
			
		||||
  const guild = exports.getGuild(message.guild.id)
 | 
			
		||||
  guild.message = message;
 | 
			
		||||
 | 
			
		||||
  if (!message.member.voice.channel && !guild.voiceChannel) {
 | 
			
		||||
    return message.reply('You have to be connected to a voice channel to use this command!')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue