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

16 lines
462 B
JavaScript

module.exports = {
name: 'stop',
aliases: ['dc'],
utilisation: '{prefix}stop',
voiceChannel: true,
execute(client, message) {
const queue = player.getQueue(message.guild.id);
if (!queue || !queue.playing) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
queue.destroy();
message.channel.send(`Music stopped into this server, see you next time ✅`);
},
};