1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-09-02 23:57:19 +00:00

Fix silencing always defaulting to 5 minutes

This commit is contained in:
Deukhoofd 2019-01-29 10:52:13 +01:00
parent 16e41120bd
commit 585dabce39
No known key found for this signature in database
GPG Key ID: B4C087AC81641654

View File

@ -210,7 +210,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler
}
await user.AddRoleAsync(silencedRole);
if (span.Seconds <= 0)
if (span.TotalSeconds <= 0)
span = TimeSpan.FromMinutes(5);
await Task.Delay(span);
await user.RemoveRoleAsync(silencedRole);