mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-08-27 01:31:19 -04:00
20 lines
302 B
Python
Executable File
20 lines
302 B
Python
Executable File
from __future__ import annotations
|
|
|
|
from typing import TypedDict
|
|
|
|
__all__ = (
|
|
"Permission",
|
|
"Role",
|
|
)
|
|
|
|
Permission = tuple[int, int]
|
|
|
|
class _RoleOptional(TypedDict, total=False):
|
|
colour: str
|
|
hoist: bool
|
|
rank: int
|
|
|
|
class Role(_RoleOptional):
|
|
name: str
|
|
permissions: Permission
|