forked from embee/woomy
		
	fixed voteskip, added autoplay to guild schema
This commit is contained in:
		
							parent
							
								
									b7d2792bfc
								
							
						
					
					
						commit
						24cfe07310
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -27,9 +27,9 @@ exports.run = (client, message, args, level) => {
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const vc = message.guild.members.cache.get(client.user.id).voiceChannel
 | 
					  const vc = message.guild.members.cache.get(client.user.id).voice.channel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (vc !== message.member.voiceChannel) {
 | 
					  if (vc !== message.member.voice.channel) {
 | 
				
			||||||
    return message.channel.send(
 | 
					    return message.channel.send(
 | 
				
			||||||
      '<:error:466995152976871434> You need to be in my voice channel to use this command!'
 | 
					      '<:error:466995152976871434> You need to be in my voice channel to use this command!'
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,6 +38,11 @@ module.exports = model('Guild', new Schema({
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  autoplay: {
 | 
				
			||||||
 | 
					    type: Boolean,
 | 
				
			||||||
 | 
					    default: false
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  plugins: {
 | 
					  plugins: {
 | 
				
			||||||
    type: Object,
 | 
					    type: Object,
 | 
				
			||||||
    default: {
 | 
					    default: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue