1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:09:00 +03:00
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2024-04-08 16:46:17 +03:00
parent 1e9e1b4bb2
commit 646c80af59
Signed by: mctaylors
GPG key ID: 7181BEBE676903C1

View file

@ -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);