mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-08-27 01:31:19 -04:00
22 lines
362 B
Python
Executable File
22 lines
362 B
Python
Executable File
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING, TypedDict
|
|
|
|
if TYPE_CHECKING:
|
|
from .file import File
|
|
|
|
|
|
__all__ = ("Member",)
|
|
|
|
class _MemberOptional(TypedDict, total=False):
|
|
nickname: str
|
|
avatar: File
|
|
roles: list[str]
|
|
|
|
class MemberID(TypedDict):
|
|
server: str
|
|
user: str
|
|
|
|
class Member(_MemberOptional):
|
|
_id: MemberID
|