Ban .warnp will now prune user's messages

This commit is contained in:
Kwoth
2021-09-13 01:30:11 +02:00
parent 467a8bdaf6
commit 8c5214def2

View File

@@ -123,7 +123,7 @@ namespace NadekoBot.Modules.Administration.Services
break;
case PunishmentAction.Ban:
if (minutes == 0)
await guild.AddBanAsync(user, reason: reason).ConfigureAwait(false);
await guild.AddBanAsync(user, reason: reason, pruneDays: 7).ConfigureAwait(false);
else
await _mute.TimedBan(user.Guild, user, TimeSpan.FromMinutes(minutes), reason)
.ConfigureAwait(false);