feat(user): add description

This commit is contained in:
TheMisterSenpai 2022-04-18 18:12:29 +03:00
parent 51249168c1
commit a8c25264c0

View file

@ -201,6 +201,13 @@ class User(APIModelBase):
@classmethod @classmethod
def from_dict(cls, data: Dict[str, Any]) -> User: def from_dict(cls, data: Dict[str, Any]) -> User:
"""Generate a user from the given data.
Parameters
----------
data: :class:`dict`
The dictionary to convert into a user.
"""
self: User = super().__new__(cls) self: User = super().__new__(cls)
self.id = int(data["id"]) self.id = int(data["id"])