softban punishment now correctly prunes messages from the last 7 days

This commit is contained in:
Master Kwoth 2017-05-16 22:03:09 +02:00
parent 7ac94e907f
commit cad2834106

View File

@ -73,7 +73,7 @@ namespace NadekoBot.Modules.Administration
await guild.AddBanAsync(user).ConfigureAwait(false); await guild.AddBanAsync(user).ConfigureAwait(false);
break; break;
case PunishmentAction.Softban: case PunishmentAction.Softban:
await guild.AddBanAsync(user).ConfigureAwait(false); await guild.AddBanAsync(user, 7).ConfigureAwait(false);
try try
{ {
await guild.RemoveBanAsync(user).ConfigureAwait(false); await guild.RemoveBanAsync(user).ConfigureAwait(false);