sidequest_common.schemas.member_profiles#
Member profile push, bot-key only: keeps names/roles/avatar synced with Discord continuously, not just at sign-in.
Classes#
One member's current Discord profile, as reported by the bot. |
|
Body for |
Module Contents#
- class sidequest_common.schemas.member_profiles.MemberProfileIn#
Bases:
pydantic.BaseModelOne member’s current Discord profile, as reported by the bot.
Mirrors the fields
MembersService.upsert_from_discordsets at sign-in:avatar_hashis the user’s main avatar hash (not a per-guild avatar),guild_nick/rolesare this guild’s nick/role ids.- avatar_hash: str | None#
- discord_id: int#
- global_name: str | None#
- guild_nick: str | None#
- roles: list[int]#
- username: str#
- class sidequest_common.schemas.member_profiles.MemberProfilesReplace#
Bases:
pydantic.BaseModelBody for
PUT /api/guilds/{guild_id}/member-profiles.profilesare linked members currently in the guild;departed_idsare linked members no longer in the guild. Only existingMemberrows are ever touched, never created: unknown ids are ignored.- departed_ids: list[int]#
- profiles: list[MemberProfileIn]#