mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 06:49:31 +00:00 
			
		
		
		
	Update index.js
This commit is contained in:
		
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							@@ -201,13 +201,13 @@ Please provide a value to select one of the search results ranging from __1-10__
 | 
				
			|||||||
		return undefined;
 | 
							return undefined;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (msg.content === `${PREFIX}`) return;
 | 
						if (msg.content === `${PREFIX}`) return;
 | 
				
			||||||
	msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
 | 
						var coms = ['-play','-queue','-np','-volume','-pause','-resume','-stop','-skip']
 | 
				
			||||||
	var coms = []
 | 
					 | 
				
			||||||
	if (msg.content.includes(coms[i])) {
 | 
						if (msg.content.includes(coms[i])) {
 | 
				
			||||||
		if (!msg.member.roles.find(x => x.name === 'DJ')) {
 | 
							if (!msg.member.roles.find(x => x.name === 'DJ')) {
 | 
				
			||||||
			msg.channel.send(':x: i\'m sorry but you need to have the \'DJ\' role use music commands!')
 | 
								msg.channel.send(':x: i\'m sorry but you need to have the \'DJ\' role use music commands!')
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else {
 | 
						else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user