mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 06:43:17 +00:00
13 lines
498 B
JavaScript
13 lines
498 B
JavaScript
module.exports = {
|
|
name: 'save',
|
|
async execute(message, args, client, Discord, prefix) {
|
|
const serverQueue = client.queue.get(message.guild.id);
|
|
if (!serverQueue) return message.channel.send(':x: There is nothing playing!');
|
|
client.global.db.playlists[message.guild.id] = {
|
|
songs: serverQueue.songs,
|
|
firstSong: serverQueue.songs[0],
|
|
saved: true,
|
|
};
|
|
message.channel.send(":white_check_mark: Queue saved!");
|
|
}
|
|
}; |