1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 09:26:00 +00:00
This commit is contained in:
MatteZ02
2019-08-02 11:32:00 +03:00
parent 6ae27ae369
commit bf618eecd7
23 changed files with 3067 additions and 0 deletions

16
commands/resume.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = {
name: 'resume',
description: 'Resume command.',
cooldown: 5,
execute(message, args, client, RichEmbed) {
const serverQueue = client.queue.get(message.guild.id);
const permissions = message.channel.permissionsFor(message.author);
if (serverQueue && !serverQueue.playing) {
if (!permissions.has('MANAGE_MESSAGES')) return message.channel.send(':x: You need the `MANAGE_MESSAGES` permission to resume the music!');
serverQueue.playing = true;
serverQueue.connection.dispatcher.resume();
return message.channel.send('▶ Resumed the music for you!');
}
return message.channel.send(':x: The music is not paused!');
}
};