calling stop while looping now terminates the loop
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user