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

Loading…
Cancel
Save