Skip to content

Message

Message model with action methods.

@dataclass(slots=True)
class Message()

A Syncopate message with methods for editing, deleting, and replying.

async def edit(content: str) -> Message

Edit this message.

async def delete() -> None

Delete this message.

async def reply(content: str) -> Message

Reply to this message (creates a threaded message).

@classmethod
def from_data(cls, data: dict[str, object]) -> Message

Construct from an API response payload.