Lanbot_Music/commands/music/resume.js
2022-04-03 04:34:37 +02:00

16 lines
545 B
JavaScript

module.exports = {
name: 'resume',
aliases: ['rs'],
utilisation: '{prefix}resume',
voiceChannel: true,
execute(client, message) {
const queue = player.getQueue(message.guild.id);
if (!queue) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
const success = queue.setPaused(false);
return message.channel.send(success ? `Current music ${queue.current.title} resumed ✅` : `Something went wrong ${message.author}... try again ? ❌`);
},
};