sidequest_common.schemas.member_profiles ======================================== .. py:module:: sidequest_common.schemas.member_profiles .. autoapi-nested-parse:: Member profile push, bot-key only: keeps names/roles/avatar synced with Discord continuously, not just at sign-in. Classes ------- .. autoapisummary:: sidequest_common.schemas.member_profiles.MemberProfileIn sidequest_common.schemas.member_profiles.MemberProfilesReplace Module Contents --------------- .. py:class:: MemberProfileIn Bases: :py:obj:`pydantic.BaseModel` One member's current Discord profile, as reported by the bot. Mirrors the fields ``MembersService.upsert_from_discord`` sets at sign-in: ``avatar_hash`` is the user's main avatar hash (not a per-guild avatar), ``guild_nick``/``roles`` are this guild's nick/role ids. .. py:attribute:: avatar_hash :type: str | None .. py:attribute:: discord_id :type: int .. py:attribute:: global_name :type: str | None .. py:attribute:: guild_nick :type: str | None .. py:attribute:: roles :type: list[int] .. py:attribute:: username :type: str .. py:class:: MemberProfilesReplace Bases: :py:obj:`pydantic.BaseModel` Body for ``PUT /api/guilds/{guild_id}/member-profiles``. ``profiles`` are linked members currently in the guild; ``departed_ids`` are linked members no longer in the guild. Only existing ``Member`` rows are ever touched, never created: unknown ids are ignored. .. py:attribute:: departed_ids :type: list[int] .. py:attribute:: profiles :type: list[MemberProfileIn]