sidequest_common.schemas.discord_online#

Discord’s public server widget, trimmed for signed-in members: who’s online right now, by name.

Attributes#

DiscordOnlineStatus

One of "online", "idle" or "dnd", as reported by Discord's widget.

Classes#

DiscordOnline

GET /api/discord/online (members only): the guild widget's live roster, or empty if Discord didn't answer.

DiscordOnlineMember

One member from the widget's anonymized roster.

Module Contents#

class sidequest_common.schemas.discord_online.DiscordOnline#

Bases: pydantic.BaseModel

GET /api/discord/online (members only): the guild widget’s live roster, or empty if Discord didn’t answer.

members: list[DiscordOnlineMember]#
ok: bool#

False when the widget fetch failed or timed out; members is then always empty.

presence_count: int | None#
class sidequest_common.schemas.discord_online.DiscordOnlineMember#

Bases: pydantic.BaseModel

One member from the widget’s anonymized roster.

activity: str | None#

The member’s current activity/game name, if any.

avatar_url: str | None#

cdn.discordapp.com/widget-avatars/...; None if Discord didn’t report one.

name: str#

Display name (Discord calls this username on the widget, but it’s the server nick/display name).

status: DiscordOnlineStatus#
sidequest_common.schemas.discord_online.DiscordOnlineStatus#

One of "online", "idle" or "dnd", as reported by Discord’s widget.