26 |
.split(/ +/); |
.split(/ +/); |
27 |
|
|
28 |
const command = await client.commands.get(cmdName); |
const command = await client.commands.get(cmdName); |
|
const allowed = await client.auth.verify(message.member!, cmdName); |
|
29 |
|
|
30 |
if (command && command.supportsLegacy) { |
if (command && command.supportsLegacy) { |
31 |
|
const allowed = await client.auth.verify(message.member!, command); |
32 |
|
|
33 |
if (allowed) { |
if (allowed) { |
34 |
const options = { |
const options = { |
35 |
cmdName, |
cmdName, |
43 |
if (!await client.cooldown.start(message, options)) |
if (!await client.cooldown.start(message, options)) |
44 |
return; |
return; |
45 |
|
|
46 |
await command.run(client, message, options); |
await command.execute(client, message, options); |
47 |
} |
} |
48 |
else { |
else { |
49 |
await message.reply({ |
await message.reply({ |