30 |
|
|
31 |
if (command && command.supportsLegacy) { |
if (command && command.supportsLegacy) { |
32 |
if (allowed) { |
if (allowed) { |
33 |
await command.run(client, message, { |
const options = { |
34 |
cmdName, |
cmdName, |
35 |
args, |
args, |
36 |
argv: [cmdName, ...args], |
argv: [cmdName, ...args], |
37 |
normalArgs: args.filter(a => a[0] !== '-'), |
normalArgs: args.filter(a => a[0] !== '-'), |
38 |
options: args.filter(a => a[0] === '-'), |
options: args.filter(a => a[0] === '-'), |
39 |
isInteraction: false |
isInteraction: false |
40 |
} as CommandOptions); |
} as CommandOptions; |
41 |
|
|
42 |
|
if (!await client.cooldown.start(message, options)) |
43 |
|
return; |
44 |
|
|
45 |
|
await command.run(client, message, options); |
46 |
} |
} |
47 |
else { |
else { |
48 |
await message.reply({ |
await message.reply({ |