mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
oops
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
1e9e1b4bb2
commit
646c80af59
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue