mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 09:49:32 +00:00 
			
		
		
		
	Update skipto.js
This commit is contained in:
		@@ -10,7 +10,7 @@ module.exports = {
 | 
				
			|||||||
        const serverQueue = client.queue.get(msg.guild.id);
 | 
					        const serverQueue = client.queue.get(msg.guild.id);
 | 
				
			||||||
        if (client.funcs.check(client, msg, command)) {
 | 
					        if (client.funcs.check(client, msg, command)) {
 | 
				
			||||||
            if (!args[1]) return msg.channel.send(`<:redx:674263474704220182> correct usage: \`${command.usage}\``);
 | 
					            if (!args[1]) return msg.channel.send(`<:redx:674263474704220182> correct usage: \`${command.usage}\``);
 | 
				
			||||||
            const point = parseInt(args[1] - 1);
 | 
					            const point = parseInt(args[1]);
 | 
				
			||||||
            if (isNaN(point)) return msg.channel.send('<:redx:674263474704220182> I\'m sorry, But you need to enter a valid __number__.');
 | 
					            if (isNaN(point)) return msg.channel.send('<:redx:674263474704220182> I\'m sorry, But you need to enter a valid __number__.');
 | 
				
			||||||
            if (point > serverQueue.songs.size) return msg.channel.send('<:redx:674263474704220182> That song does not exist!');
 | 
					            if (point > serverQueue.songs.size) return msg.channel.send('<:redx:674263474704220182> That song does not exist!');
 | 
				
			||||||
            if (point < 1) return msg.channel.send('<:redx:674263474704220182> You can\'t skip to the song currently playing!');
 | 
					            if (point < 1) return msg.channel.send('<:redx:674263474704220182> You can\'t skip to the song currently playing!');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user