Skip to content

Commit

Permalink
[Fix] fixed repeat command sending message twice and not changing t…
Browse files Browse the repository at this point in the history
…he `setRepead` mode to `AUTO`
  • Loading branch information
naseif committed Nov 9, 2021
1 parent 65e3307 commit 84a0904
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions commands/Music/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ module.exports = {

switch (mode) {
case "off":
await queue.setRepeatMode(0);
await queue.setRepeatMode(Number(0));
await message.channel.send({
embeds: [
embedMessage("#9dcc37", `✅ | Repeat Mode has been disabled`),
],
});
break;
case "queue":
await queue.setRepeatMode(2);
await queue.setRepeatMode(Number(2));
await message.channel.send({
embeds: [
embedMessage(
Expand All @@ -56,7 +56,7 @@ module.exports = {
});
break;
case "auto":
await queue.setRepeatMode(3);
await queue.setRepeatMode(Number(3));
await message.channel.send({
embeds: [
embedMessage(
Expand All @@ -65,6 +65,7 @@ module.exports = {
),
],
});
break;
default:
await queue.setRepeatMode(1);
await message.channel.send({
Expand Down

0 comments on commit 84a0904

Please sign in to comment.