Good evening guys, I have a question I am using mongodb to save the warn and ban information of my bot. But I don't know how to access the information with pymongo. If anyone can help me I will be grateful.
The main idea is to count how many warns the user has (this is marked in purple).
collection.count_documents({"id_user": id_user, f"warns.{guild_id}": {"$exists": True}})
