Function kilogramme_tbd::plugins::restrict::ban_handler
source · pub async fn ban_handler(
bot: &mut UserBot,
message: &mut Message
) -> Result<(), UserBotError>
Expand description
Ban a user
⚠️WARN⚠️: Kicks user if not in super group
Scope
Group Chat
Usage(s)
<reply> !ban <time>
!ban @username <time>
Example(s)
!ban @test 12d
!ban @test