discord-rich-presence-plex/models/discord.py

23 lines
420 B
Python
Raw Normal View History

2022-05-14 09:43:02 +00:00
from typing import TypedDict
class ActivityAssets(TypedDict):
large_text: str
large_image: str
small_text: str
small_image: str
class ActivityTimestamps(TypedDict, total = False):
start: int
end: int
class ActivityButton(TypedDict):
label: str
url: str
2022-05-14 09:43:02 +00:00
class Activity(TypedDict, total = False):
details: str
state: str
assets: ActivityAssets
timestamps: ActivityTimestamps
buttons: list[ActivityButton]