mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[entertainment] remove unused CanPunish method
This commit is contained in:
@@ -101,11 +101,6 @@ namespace West.Entertainment.Handler.Fun
|
|||||||
return await _db.UserValues.FindOrCreateOption(Chat.Id, $"{GetAnimationName()}NextUse");
|
return await _db.UserValues.FindOrCreateOption(Chat.Id, $"{GetAnimationName()}NextUse");
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<bool> CanPunish()
|
|
||||||
{
|
|
||||||
return RepliedUser != null && await Bot.CanPunishMember(Chat, From, RepliedUser);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual int? GetMessageIdToReply() => Message?.MessageId;
|
protected virtual int? GetMessageIdToReply() => Message?.MessageId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user