Skip to content

Client

Low-level Syncopate client — REST + SSE, no command framework.

class Client()

Low-level Syncopate client.

Provides REST API access and SSE event streaming without the command framework. Use :class:Bot for the full experience.

async def start() -> None

Authenticate, cache channels, and connect to SSE.

async def close() -> None

Disconnect and clean up.

async def fetch_user(user_id: str) -> User

Fetch a user by ID.

async def fetch_workspaces() -> list[Workspace]

Fetch all workspaces the bot is a member of.

async def get_channel(channel_id: str) -> Channel

Get a channel from cache or fetch it.