mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 12:59:31 +00:00 
			
		
		
		
	Update index.js
This commit is contained in:
		
							
								
								
									
										1
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								index.js
									
									
									
									
									
								
							@@ -85,6 +85,7 @@ client.on('message', async msg => {
 | 
				
			|||||||
		command = command.slice(PREFIX.length)
 | 
							command = command.slice(PREFIX.length)
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
		if (command === 'play') {
 | 
							if (command === 'play') {
 | 
				
			||||||
 | 
								if (!args[1]) return msg.channel.send(':x: I\'m sorry but you didn\'t specify the song');
 | 
				
			||||||
			const voiceChannel = msg.member.voiceChannel;
 | 
								const voiceChannel = msg.member.voiceChannel;
 | 
				
			||||||
			if (!voiceChannel) return msg.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
 | 
								if (!voiceChannel) return msg.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
 | 
				
			||||||
			const permissions = voiceChannel.permissionsFor(msg.client.user);
 | 
								const permissions = voiceChannel.permissionsFor(msg.client.user);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user