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

View File

@@ -107,11 +107,9 @@ internal class BotCommands
if (isRateLimited.IsRateLimited)
{
_ = SendCooldownResponse(user, command.RateLimitOptions, isRateLimited.OldestEntryExpires!.Value, command.GetType().Name);
continue;
}
else
{
RateLimitService.AddEntry(user, command, message.MessageRawHtmlDecoded);
}
RateLimitService.AddEntry(user, command, message.MessageRawHtmlDecoded);
}
_ = ProcessMessageAsync(command, message, user, match.Groups);
if (!continueAfterProcess) break;