mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 06:16:00 +00:00
updated all commands and removed some weird files
This commit is contained in:
@ -6,11 +6,13 @@ module.exports = {
|
||||
const serverQueue = client.queue.get(message.guild.id);
|
||||
const permissions = message.channel.permissionsFor(message.author);
|
||||
if (serverQueue && serverQueue.playing === true) {
|
||||
if (!permissions.has('MANAGE_MESSAGES')) return message.channel.send(':x: You need the `MANAGE_MESSAGES` permission to pause the music!');
|
||||
if (message.author.id !== '360363051792203779') {
|
||||
if (!permissions.has('MANAGE_MESSAGES')) return message.channel.send(':x: You need the `MANAGE_MESSAGES` permission to pause the music!');
|
||||
}
|
||||
serverQueue.playing = false;
|
||||
serverQueue.connection.dispatcher.pause();
|
||||
return message.channel.send('⏸ Paused the music for you!');
|
||||
}
|
||||
return message.channel.send('There is nothing playing.');
|
||||
return message.channel.send(':x: There is nothing playing.');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user