|
|
@ -71,9 +71,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
// Check if the limit of parallel execution has been reached
|
|
|
|
// Check if the limit of parallel execution has been reached
|
|
|
|
if (command.parallelLimit) {
|
|
|
|
if (command.parallelLimit) {
|
|
|
|
console.log('Command has a parallel limit');
|
|
|
|
|
|
|
|
const doParallelLimit = ratelimiter.checkParallel(interaction.user, commandName, command);
|
|
|
|
const doParallelLimit = ratelimiter.checkParallel(interaction.user, commandName, command);
|
|
|
|
console.log(doParallelLimit.limited);
|
|
|
|
|
|
|
|
if (doParallelLimit.limited) {
|
|
|
|
if (doParallelLimit.limited) {
|
|
|
|
return await interaction.reply({ content: doParallelLimit, ephemeral: true });
|
|
|
|
return await interaction.reply({ content: doParallelLimit, ephemeral: true });
|
|
|
|
}
|
|
|
|
}
|
|
|
|