sidequest_common.schemas.signup_by_discord#

Bot-key sign-up lookup/upsert by Discord id, for Discord’s Going/Maybe/Can’t buttons.

GET/PUT /api/guilds/{guild_id}/events/{event_id}/signups/by-discord/{discord_id}: lets the bot read and write a member’s signup without a site session, identifying them by Discord id instead (same shape of trick as signup_notices’s bot-key roster-confirmation routes).

Classes#

SignupByDiscord

GET .../signups/by-discord/{discord_id}: the member's current signup for this event, plus defaults.

SignupDefaults

A member's most recent character/class/role from any earlier signup, to prefill a new one.

Module Contents#

class sidequest_common.schemas.signup_by_discord.SignupByDiscord#

Bases: pydantic.BaseModel

GET .../signups/by-discord/{discord_id}: the member’s current signup for this event, plus defaults.

signup is None if the member hasn’t signed up for this event yet. defaults is None if the member has never given character/class/role on any event. kind is the event’s kind, so the bot can tell whether a bare RSVP is enough without a second round trip.

defaults: SignupDefaults | None#
kind: sidequest_common.schemas.events.EventKind#
signup: sidequest_common.schemas.events.Signup | None#
class sidequest_common.schemas.signup_by_discord.SignupDefaults#

Bases: pydantic.BaseModel

A member’s most recent character/class/role from any earlier signup, to prefill a new one.

character: str | None#
model_config#
role: sidequest_common.schemas.events.SignupRole | None#
wow_class: sidequest_common.schemas.events.WowClass | None#