mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[cm] ability to ban user for an arbitrary period
This commit is contained in:
@@ -34,7 +34,7 @@ public class Warn : CommonHandler
|
||||
|
||||
if (warnCount == 3)
|
||||
{
|
||||
await BanMember(warnUser);
|
||||
await BanMember(warnUser.Id, DateTime.Now.AddDays(7));
|
||||
warnOption.SetValue(0);
|
||||
Db.AddOrUpdate(warnOption);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user