sidequest_common.schemas.role_resets ==================================== .. py:module:: sidequest_common.schemas.role_resets .. autoapi-nested-parse:: Discord role-reset outbox, reported to the bot so it can strip a deleted account's Discord roles. The bot polls ``GET /api/guilds/{guild_id}/role-resets`` for members whose site account was deleted and still need every manageable Discord role stripped (gate role excepted, since ``link_roles`` re-grants it once the member is unlinked). ``POST .../role-resets/{id}/ack`` tells the API the bot has acted (or that the member is no longer in the guild, in which case it's acked without any role changes). Classes ------- .. autoapisummary:: sidequest_common.schemas.role_resets.RoleResetCandidate Module Contents --------------- .. py:class:: RoleResetCandidate Bases: :py:obj:`pydantic.BaseModel` One pending role reset, oldest first. .. py:attribute:: discord_id :type: int .. py:attribute:: id :type: uuid.UUID .. py:attribute:: requested_at :type: datetime.datetime