mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
fixes
This commit is contained in:
parent
dcd77bacc3
commit
feb79398e9
1 changed files with 4 additions and 2 deletions
|
@ -401,12 +401,13 @@ class UserLinks(APIObjectBase):
|
|||
"""
|
||||
|
||||
self: UserLinks = super().__new__(cls)
|
||||
data = data or {}
|
||||
|
||||
self.vk = data.get("vk")
|
||||
self.telegram = data.get("telegram")
|
||||
self.donate = data.get("donate")
|
||||
self.git = data.get("git")
|
||||
self.custon = data.get("custom")
|
||||
self.custom = data.get("custom")
|
||||
|
||||
return self
|
||||
|
||||
|
@ -547,7 +548,7 @@ class PartialUser(APIObjectBase):
|
|||
self.discriminator = data["discriminator"]
|
||||
self.avatar = data.get("avatar")
|
||||
self.id = data["id"]
|
||||
self.socials = UserLinks.from_dict(data["socials"])
|
||||
self.socials = UserLinks.from_dict(data.get("socials", {}))
|
||||
self.description = data.get("description")
|
||||
self.short_description = data.get("shortDescription")
|
||||
self.status = data.get("status")
|
||||
|
@ -647,6 +648,7 @@ class ResourceServer(APIObjectBase):
|
|||
self.owner = data.get("owner")
|
||||
self.website = data.get("website")
|
||||
self.up_count = data.get("upCount")
|
||||
self.standart_banner_id = data.get("standartBannerID")
|
||||
|
||||
self.premium_active = data["premium"].get("active")
|
||||
self.premium_splash_url = data["premium"].get("splashURL")
|
||||
|
|
Loading…
Reference in a new issue