eximiabots-radiox/commands/stop.js
2020-03-07 22:07:54 +02:00

17 lines
433 B
JavaScript

module.exports = {
name: 'stop',
description: 'Stop command.',
alias: 'none',
usage: '',
onlyDev: false,
permission: 'MANAGE_CHANNELS',
category: 'music',
execute(msg, args, client, Discord, prefix, command) {
const radio = client.radio.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
radio.connection.dispatcher.end();
msg.channel.send('<:stop:674685626108477519> Stopped the music!')
}
}
};