mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
Update skipto.js
This commit is contained in:
parent
25e73a10aa
commit
5a5ee2b324
@ -10,7 +10,7 @@ module.exports = {
|
||||
const serverQueue = client.queue.get(msg.guild.id);
|
||||
if (client.funcs.check(client, msg, command)) {
|
||||
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 (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!');
|
||||
|
Loading…
Reference in New Issue
Block a user