eximiabots-radiox/commands/stop.js
2020-03-08 17:03:39 +02:00

15 lines
416 B
JavaScript

module.exports = {
name: 'stop',
description: 'Stop command.',
alias: 'none',
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(guild.id);
msg.channel.send('<:stop:674685626108477519> Stopped the music!');
}
};