2020-03-02 19:38:42 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'stop',
|
|
|
|
description: 'Stop command.',
|
2020-03-09 11:28:52 +00:00
|
|
|
alias: 's',
|
2020-03-02 19:38:42 +00:00
|
|
|
usage: '',
|
2020-03-08 14:54:57 +00:00
|
|
|
permission: 'none',
|
2020-03-02 19:38:42 +00:00
|
|
|
category: 'music',
|
|
|
|
execute(msg, args, client, Discord, prefix, command) {
|
|
|
|
const radio = client.radio.get(msg.guild.id);
|
2020-03-08 15:03:39 +00:00
|
|
|
radio.connection.dispatcher.destroy();
|
|
|
|
radio.voiceChannel.leave();
|
2020-03-08 15:42:27 +00:00
|
|
|
client.radio.delete(msg.guild.id);
|
2020-03-12 00:50:05 +00:00
|
|
|
msg.channel.send('Stopped playback!');
|
2020-03-02 19:38:42 +00:00
|
|
|
}
|
2020-03-08 14:54:57 +00:00
|
|
|
};
|