Added deprecation notice

This commit is contained in:
Profitroll 2023-08-17 15:15:53 +02:00
parent b3805d66ef
commit 8dad53409b
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -9,7 +9,10 @@ from modules.database import col_users
class PyroClient(PyroClient): class PyroClient(PyroClient):
async def find_user(self, user: Union[int, User]) -> PyroUser: async def find_user(self, user: Union[int, User]) -> PyroUser:
"""Find User by it's ID or User object """Find User by it's ID or User object.
### ⚠️ WARNING
Method is deprecated, `PyroUser.find()` is a preferred way to find users
### Args: ### Args:
* user (`Union[int, User]`): ID or User object to extract ID from * user (`Union[int, User]`): ID or User object to extract ID from