We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34f3845 + 154e4b1 commit 29d42dcCopy full SHA for 29d42dc
src/commands/music/Move.ts
@@ -62,14 +62,14 @@ export default class Move extends Command {
62
let from: number;
63
let to: number;
64
65
- if (args.length === 2) {
+ if (args.length === 3 && args[1].toLowerCase() === 'to') {
66
// 'move 2 to 1' - args = ['2', 'to', '1']
67
from = Number(args[0]);
68
to = Number(args[2]);
69
- } else if (args.length === 3) {
70
- // 'move 2 to 1' as ['move', '2', 'to', '1']
71
- from = Number(args[1]);
72
- to = Number(args[3]);
+ } else if (args.length === 2) {
+ // 'move 2 1' - args = ['2', '1']
+ from = Number(args[0]);
+ to = Number(args[1]);
73
} else {
74
return await ctx.sendMessage({
75
embeds: [
0 commit comments