eximiabots-radiox/commands/stop.js
2020-03-09 13:28:52 +02:00

15 lines
417 B
JavaScript

module.exports = {
name: 'stop',
description: 'Stop command.',
alias: 's',
usage: '',
permission: 'none',
category: 'music',
execute(msg, args, client, Discord, prefix, command) {
const radio = client.radio.get(msg.guild.id);
radio.connection.dispatcher.destroy();
radio.voiceChannel.leave();
client.radio.delete(msg.guild.id);
msg.channel.send('<:stop:674685626108477519> Stopped the music!');
}
};