1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 12:36:01 +00:00

Addition to the playlists

This commit is contained in:
MatteZ02
2019-10-12 18:01:13 +03:00
parent ff2845c6cb
commit c716867b8d
4 changed files with 15 additions and 0 deletions

View File

@ -4,7 +4,11 @@ module.exports = {
description: 'Save and load queues',
cooldown: 10,
async execute(message, args, client, Discord, prefix) {
const permissions = message.channel.permissionsFor(message.author);
const serverQueue = client.queue.get(message.guild.id);
if (message.author.id !== '360363051792203779') {
if (!permissions.has('MANAGE_GUILD')) return message.channel.send(':x: You need the `MANAGE_SERVER` permission to modify the playlist!');
}
if (client.global.db.guilds[message.guild.id].premium) {
if (args[1] === 'play') {
if (client.global.db.playlists[message.guild.id].saved) {