mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-25 02:50:17 +00:00
34 lines
589 B
Python
34 lines
589 B
Python
from typing import TypedDict
|
|
|
|
class Logging(TypedDict):
|
|
debug: bool
|
|
writeToFile: bool
|
|
|
|
class Posters(TypedDict):
|
|
enabled: bool
|
|
imgurClientID: str
|
|
|
|
class Button(TypedDict):
|
|
label: str
|
|
url: str
|
|
|
|
class Display(TypedDict):
|
|
hideTotalTime: bool
|
|
useRemainingTime: bool
|
|
posters: Posters
|
|
buttons: list[Button]
|
|
|
|
class Server(TypedDict, total = False):
|
|
name: str
|
|
listenForUser: str
|
|
blacklistedLibraries: list[str]
|
|
whitelistedLibraries: list[str]
|
|
|
|
class User(TypedDict):
|
|
token: str
|
|
servers: list[Server]
|
|
|
|
class Config(TypedDict):
|
|
logging: Logging
|
|
display: Display
|
|
users: list[User]
|