15 lines
344 B
Python
15 lines
344 B
Python
from pydantic import BaseModel, NonNegativeInt
|
|
from pypresence.types import ActivityType
|
|
from typing import Optional
|
|
|
|
|
|
class DiscordRPCUpdatePayload(BaseModel):
|
|
id: str
|
|
title: str
|
|
subtitle: str
|
|
image_url: str
|
|
details: str
|
|
start: Optional[NonNegativeInt]
|
|
end: Optional[NonNegativeInt]
|
|
activity_type: ActivityType
|