mirror of
https://github.com/MelisaDev/melisa.git
synced 2024-11-11 19:07:28 +03:00
feat(user): added False in some cases
This commit is contained in:
parent
036d6817f3
commit
51249168c1
1 changed files with 4 additions and 4 deletions
|
@ -207,13 +207,13 @@ class User(APIModelBase):
|
||||||
self.username = data.get("username")
|
self.username = data.get("username")
|
||||||
self.discriminator = data.get("discriminator")
|
self.discriminator = data.get("discriminator")
|
||||||
self.avatar = data.get("avatar")
|
self.avatar = data.get("avatar")
|
||||||
self.bot = data.get("bot")
|
self.bot = data.get("bot", False)
|
||||||
self.system = data.get("system")
|
self.system = data.get("system", False)
|
||||||
self.mfa_enabled = data.get("mfa_enable")
|
self.mfa_enabled = data.get("mfa_enable", False)
|
||||||
self.banner = data.get("banner")
|
self.banner = data.get("banner")
|
||||||
self.accent_color = data.get("accent_color")
|
self.accent_color = data.get("accent_color")
|
||||||
self.local = data.get("local")
|
self.local = data.get("local")
|
||||||
self.verified = data.get("verified")
|
self.verified = data.get("verified", False)
|
||||||
self.email = data.get("email")
|
self.email = data.get("email")
|
||||||
self.premium_type = try_enum(
|
self.premium_type = try_enum(
|
||||||
PremiumTypes, data.get("premium_type")
|
PremiumTypes, data.get("premium_type")
|
||||||
|
|
Loading…
Reference in a new issue