Przeglądaj źródła

Change one more occurrence of kick_member

Signed-off-by: TheHamkerCat <TheHamkerCat@gmail.com>
TheHamkerCat 4 lat temu
rodzic
commit
d972bbd9b8
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      .gitignore
  2. 1 1
      wbb/modules/greetings.py

+ 1 - 0
.gitignore

@@ -154,3 +154,4 @@ neofetch.txt
 error.log
 permissions.json
 .vscode
+.idea

+ 1 - 1
wbb/modules/greetings.py

@@ -256,7 +256,7 @@ async def callback_query_welcome_button(_, callback_query):
                 attempts = iii["attempts"]
                 if attempts >= 3:
                     answers_dicc.remove(iii)
-                    await button_message.chat.kick_member(pending_user_id)
+                    await button_message.chat.ban_member(pending_user_id)
                     await asyncio.sleep(1)
                     await button_message.chat.unban_member(pending_user_id)
                     await button_message.delete()