Client
Table of Contents
Section titled “Table of Contents”syncopate.client
Section titled “syncopate.client”Low-level Syncopate client — REST + SSE, no command framework.
Client Objects
Section titled “Client Objects”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() -> NoneAuthenticate, cache channels, and connect to SSE.
async def close() -> NoneDisconnect and clean up.
fetch_user
Section titled “fetch_user”async def fetch_user(user_id: str) -> UserFetch a user by ID.
fetch_workspaces
Section titled “fetch_workspaces”async def fetch_workspaces() -> list[Workspace]Fetch all workspaces the bot is a member of.
get_channel
Section titled “get_channel”async def get_channel(channel_id: str) -> ChannelGet a channel from cache or fetch it.