From 646c80af5986b06eb247965c42e011e1d3cf4b2e Mon Sep 17 00:00:00 2001 From: mctaylors Date: Mon, 8 Apr 2024 16:46:17 +0300 Subject: [PATCH] oops Signed-off-by: mctaylors --- src/Commands/WarnCommandGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/WarnCommandGroup.cs b/src/Commands/WarnCommandGroup.cs index f4c250a..8f4eb29 100644 --- a/src/Commands/WarnCommandGroup.cs +++ b/src/Commands/WarnCommandGroup.cs @@ -141,7 +141,7 @@ public class WarnCommandGroup : CommandGroup return await _feedback.SendContextualEmbedResultAsync(errorEmbed, ct: CancellationToken); } - if (warns.Count + 1 < warnThreshold) + if (warns.Count + 1 < warnThreshold || warnThreshold is 0) { return await WarnUserAsync(executor, target, reason, guild, data, channelId, bot, settings, warns, warnThreshold, warnPunishment, warnDuration, ct);