mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
Update playlist.js
This commit is contained in:
parent
54f3b6ca70
commit
b9d6f01b32
@ -119,7 +119,7 @@ module.exports = {
|
|||||||
if (isNaN(songNum)) return message.channel.send(':x: You need to enter a __number__!');
|
if (isNaN(songNum)) return message.channel.send(':x: You need to enter a __number__!');
|
||||||
if (songNum === 0) return message.channel.send(':x: You can not remove the currently playing song!');
|
if (songNum === 0) return message.channel.send(':x: You can not remove the currently playing song!');
|
||||||
if (parseInt(songNum) > client.global.db.playlists[message.guild.id].songs.size) return message.channel.send(`:x: There is only ${serverQueue.songs.size} amount of songs in the queue!`);
|
if (parseInt(songNum) > client.global.db.playlists[message.guild.id].songs.size) return message.channel.send(`:x: There is only ${serverQueue.songs.size} amount of songs in the queue!`);
|
||||||
message.channel.send(`🗑️ removed \`${client.global.db.playlists[message.guild.id].songs[songNum].title}\` from the queue!`);
|
message.channel.send(`🗑️ removed \`${client.global.db.playlists[message.guild.id].songs[songNum].title}\` from the playlist!`);
|
||||||
return client.global.db.playlists[message.guild.id].songs.splice(songNum, 1);
|
return client.global.db.playlists[message.guild.id].songs.splice(songNum, 1);
|
||||||
} else return message.channel.send(':x: There is no playlist saved! Start by using the save option!')
|
} else return message.channel.send(':x: There is no playlist saved! Start by using the save option!')
|
||||||
} else if (args[1] === 'list') {
|
} else if (args[1] === 'list') {
|
||||||
|
Loading…
Reference in New Issue
Block a user