nuremberg command

This commit is contained in:
doryan04 2024-02-16 20:29:37 +04:00
parent 7086e700dc
commit 2997c7ac7d

View File

@ -46,7 +46,7 @@ async fn callback(bot: Bot, msg: Message, commands: Commands) -> ResponseResult<
Commands::Help => {
bot.send_message(msg.chat.id, Commands::descriptions().to_string()).await?;
},
Commands::Nurnberg(reason) => {
Commands::Nuremberg(reason) => {
if is_admin_check(&msg, &bot).await {
let reason_result = if reason.is_empty() { None } else { Some(reason) };
let _ = ban_user(