sidequest_common.schemas.discord_live#

Live Discord presence/voice-channel status, counts only (never names or ids).

Classes#

DiscordLive

API -> website (public): the guild's live status, or empty if the bot hasn't reported recently.

DiscordLiveReport

Bot -> API: what the guild looks like right now.

VoiceChannelCount

One voice/stage channel the bot reported on.

Module Contents#

class sidequest_common.schemas.discord_live.DiscordLive#

Bases: pydantic.BaseModel

API -> website (public): the guild’s live status, or empty if the bot hasn’t reported recently.

members: int | None#
online: int | None#
reported_at: datetime.datetime | None#

When the bot last reported.

voice: list[VoiceChannelCount]#
class sidequest_common.schemas.discord_live.DiscordLiveReport#

Bases: pydantic.BaseModel

Bot -> API: what the guild looks like right now.

members: int | None = None#

Guild.approximate_member_count.

online: int | None = None#

Guild.approximate_presence_count (None if the fetch failed).

voice: list[VoiceChannelCount]#

Every voice/stage channel @everyone can view, zero counts included, in Discord’s channel order.

class sidequest_common.schemas.discord_live.VoiceChannelCount#

Bases: pydantic.BaseModel

One voice/stage channel the bot reported on.

count: int#

Non-bot members connected right now.

name: str#

Discord channel name as shown, e.g. “dungeon-1”, “Lobby”.