feat(user): fix description

This commit is contained in:
TheMisterSenpai 2022-04-18 19:37:01 +03:00
parent 359ea514c0
commit 3fdce239ef

View file

@ -197,6 +197,13 @@ class User(APIModelBase):
@classmethod
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.id = int(data["id"])