From 2b243bea57877d21016c6eada35bcee922d21cff Mon Sep 17 00:00:00 2001
From: barelyprofessional
<150058423+barelyprofessional@users.noreply.github.com>
Date: Fri, 12 Sep 2025 13:58:58 -0500
Subject: [PATCH] Turns out it was due to NoResponse being the first value in
the enum so it was assigned value 0
---
KfChatDotNetBot/Models/RateLimitModels.cs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/KfChatDotNetBot/Models/RateLimitModels.cs b/KfChatDotNetBot/Models/RateLimitModels.cs
index 8abc9af..0d6d0b1 100644
--- a/KfChatDotNetBot/Models/RateLimitModels.cs
+++ b/KfChatDotNetBot/Models/RateLimitModels.cs
@@ -34,10 +34,11 @@ public class RateLimitOptionsModel
/// Maximum number of permitted invocations within the window before triggering the rate limit
///
public required int MaxInvocations { get; set; }
+
///
/// Optional set of flags to configure the behavior of the rate limiter
///
- public RateLimitFlags Flags { get; set; }
+ public RateLimitFlags Flags { get; set; } = RateLimitFlags.None;
}
public class IsRateLimitedModel
@@ -56,6 +57,10 @@ public class IsRateLimitedModel
[Flags]
public enum RateLimitFlags
{
+ ///
+ /// Placeholder for the default value
+ ///
+ None,
///
/// Silently ignore a user when they trigger a rate limit
///