slay.py

 1from typing import TypedDict
 2
 3Undefined = type
 4
 5class GlobalChatHistoryDict(TypedDict):
 6    channel: str
 7    messages: list["MessageDict"]
 8    hasMore: True
 9
10class MessageDict(TypedDict):
11    id: int
12    player_id: int
13    player_name: str
14    name_color_id: int
15    message: str
16    creation_timestamp: int
17    clan_tag: str
18    channel: str
19    server_id: int | Undefined
Undefined = <class 'type'>
class GlobalChatHistoryDict(typing.TypedDict):
6class GlobalChatHistoryDict(TypedDict):
7    channel: str
8    messages: list["MessageDict"]
9    hasMore: True
channel: str
messages: list[MessageDict]
hasMore: True
class MessageDict(typing.TypedDict):
11class MessageDict(TypedDict):
12    id: int
13    player_id: int
14    player_name: str
15    name_color_id: int
16    message: str
17    creation_timestamp: int
18    clan_tag: str
19    channel: str
20    server_id: int | Undefined
id: int
player_id: int
player_name: str
name_color_id: int
message: str
creation_timestamp: int
clan_tag: str
channel: str
server_id: int | type