mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 04:20:49 +00:00
Chore update 3.7
This commit is contained in:
@ -16,12 +16,13 @@ module.exports = {
|
||||
let point = parseInt(args[1]);
|
||||
point = point - 1;
|
||||
if (isNaN(point)) return msg.channel.send(client.messages.validNumber);
|
||||
if (point > queue.songs.size)
|
||||
if (point > queue.songs.length - 1)
|
||||
return msg.channel.send(client.messages.noSongs);
|
||||
if (point < 0) return msg.channel.send(client.messages.cantSkipToCurrent);
|
||||
for (let i = 0; i < point; i++) {
|
||||
queue.prevSongs.push(queue.songs.shift());
|
||||
}
|
||||
msg.channel.send(client.messages.skipped);
|
||||
queue.endReason = "skipto";
|
||||
queue.time = 0;
|
||||
queue.connection.dispatcher.end();
|
||||
|
Reference in New Issue
Block a user