Do not execute a command after sending the cooldown response

This commit is contained in:
barelyprofessional
2025-09-08 19:34:23 -05:00
parent aec236f92a
commit b3c3734e22
+1 -3
View File
@@ -107,12 +107,10 @@ internal class BotCommands
if (isRateLimited.IsRateLimited)
{
_ = SendCooldownResponse(user, command.RateLimitOptions, isRateLimited.OldestEntryExpires!.Value, command.GetType().Name);
continue;
}
else
{
RateLimitService.AddEntry(user, command, message.MessageRawHtmlDecoded);
}
}
_ = ProcessMessageAsync(command, message, user, match.Groups);
if (!continueAfterProcess) break;
}