mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-08-27 01:31:19 -04:00
23 lines
384 B
Python
Executable File
23 lines
384 B
Python
Executable File
from typing import Literal, TypedDict, Union
|
|
|
|
__all__ = (
|
|
"GroupInvite",
|
|
"ServerInvite",
|
|
"Invite",
|
|
)
|
|
|
|
class GroupInvite(TypedDict):
|
|
type: Literal["Group"]
|
|
_id: str
|
|
creator: str
|
|
channel: str
|
|
|
|
class ServerInvite(TypedDict):
|
|
type: Literal["Server"]
|
|
_id: str
|
|
server: str
|
|
creator: str
|
|
channel: str
|
|
|
|
Invite = Union[ServerInvite, GroupInvite]
|