Browse Source

Fixing Space Issues

pull/133/head
Justin 6 years ago
committed by GitHub
parent
commit
39619474be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      disco/types/user.py

6
disco/types/user.py

@ -69,21 +69,25 @@ Status = Enum(
'OFFLINE',
)
class Party(SlottedModel):
id = Field(text)
size = ListField(int)
class Assets(SlottedModel):
large_image = Field(text)
large_text = Field(text)
small_image = Field(text)
small_text = Field(text)
class Secrets(SlottedModel):
join = Field(text)
spectate = Field(text)
match = Field(text)
class Timestamps(SlottedModel):
start = Field(int)
end = Field(int)
@ -94,6 +98,7 @@ class Timestamps(SlottedModel):
def end_time(self):
return datetime.utcfromtimestamp(self.end / 1000)
class Game(SlottedModel):
type = Field(GameType)
name = Field(text)
@ -108,6 +113,7 @@ class Game(SlottedModel):
instance = Field(bool)
flags = Field(int)
class Presence(SlottedModel):
user = Field(User, alias='user', ignore_dump=['presence'])
game = Field(Game)

Loading…
Cancel
Save