diff --git a/disco/types/user.py b/disco/types/user.py index e71b29b..4cf93ea 100644 --- a/disco/types/user.py +++ b/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)