Skip to content

Commit

Permalink
fix(stop): turn off loop before ending queue
Browse files Browse the repository at this point in the history
  • Loading branch information
eritislami committed Jan 27, 2022
1 parent 448d15f commit 5e4b229
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
if (!queue) return message.reply(i18n.__("stop.errorNotQueue")).catch(console.error);
if (!canModifyQueue(message.member)) return i18n.__("common.errorNotChannel");

queue.loop = false;
queue.songs = [];
queue.connection.dispatcher.end();
queue.textChannel.send(i18n.__mf("stop.result", { author: message.author })).catch(console.error);
Expand Down

0 comments on commit 5e4b229

Please sign in to comment.