10 |
} |
} |
11 |
|
|
12 |
async run(client: DiscordClient, interaction: Interaction) { |
async run(client: DiscordClient, interaction: Interaction) { |
|
console.log('inside'); |
|
|
|
|
13 |
if (interaction.isCommand()) { |
if (interaction.isCommand()) { |
14 |
await client.setMessage(interaction); |
await client.setMessage(interaction); |
15 |
|
|
32 |
return; |
return; |
33 |
} |
} |
34 |
|
|
35 |
await command.run(client, interaction, { |
const options = { |
36 |
cmdName: commandName, |
cmdName: commandName, |
37 |
options: interaction.options, |
options: interaction.options, |
38 |
isInteraction: true |
isInteraction: true |
39 |
} as InteractionOptions); |
} as InteractionOptions; |
40 |
|
|
41 |
|
if (!await client.cooldown.start(interaction, options)) |
42 |
|
return; |
43 |
|
|
44 |
|
await command.run(client, interaction, options); |
45 |
} |
} |
46 |
} |
} |
47 |
} |
} |