diff --git a/commands/stop.js b/commands/stop.js index 563e1db..da2c970 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -3,13 +3,11 @@ module.exports = { description: 'Stop command.', alias: 'none', usage: '', - permission: 'MANAGE_CHANNELS', + permission: 'none', 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!') - } + radio.connection.dispatcher.end(); + msg.channel.send('<:stop:674685626108477519> Stopped the music!'); } -}; +}; \ No newline at end of file diff --git a/struct/funcs/play.js b/struct/funcs/play.js index 518f2aa..e7ba917 100644 --- a/struct/funcs/play.js +++ b/struct/funcs/play.js @@ -5,7 +5,7 @@ module.exports = async function (guild, client, url) { .play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 }) .on("finish", () => { radio.voiceChannel.leave(); - radio.delete(); + client.radio.delete(guild.id); return; }); dispatcher.on('start', () => {