calling stop while looping now terminates the loop

This commit is contained in:
Andreas Hollmeier
2020-09-11 22:29:08 +02:00
parent 4f358466c5
commit 27983fcbe6

View File

@@ -10,6 +10,7 @@ exports.run = async (client, message, args) => {
if(!client.player.isPlaying(message.guild.id)) return message.channel.send(`No music playing on this server ${emotes.error}`); if(!client.player.isPlaying(message.guild.id)) return message.channel.send(`No music playing on this server ${emotes.error}`);
//Stop player //Stop player
client.player.setRepeatMode(message.guild.id, false);
client.player.stop(message.guild.id); client.player.stop(message.guild.id);
//Message //Message