guild ===== .. py:module:: wow.models.guild .. autoapi-nested-parse:: Models for the Guild API. Forever guilds have no realm: a guild's address is its slug alone, such as ``/data/wow/guild/sidequest``. The guild's activity and achievements documents answer, but hold nothing beyond a link back to the guild yet. .. py:class:: GuildRef Bases: :py:obj:`wow.models._common.Model` A link to a guild, as characters and rosters carry it. .. py:attribute:: key :type: wow.models._common.Link .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: slug :type: str .. py:attribute:: faction :type: wow.models._common.TypedName .. py:class:: Guild Bases: :py:obj:`wow.models._common.Document` A guild: its faction, ruleset, size and links to its roster. :ivar name_search: The name as Battle.net indexes it for lookups. :ivar created_timestamp: When the guild was founded, in Unix milliseconds. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: slug :type: str .. py:attribute:: name_search :type: str .. py:attribute:: faction :type: wow.models._common.TypedName .. py:attribute:: ruleset :type: wow.models._common.Ref .. py:attribute:: achievement_points :type: int .. py:attribute:: member_count :type: int .. py:attribute:: created_timestamp :type: int .. py:attribute:: roster :type: wow.models._common.Link .. py:attribute:: achievements :type: wow.models._common.Link .. py:attribute:: activity :type: wow.models._common.Link .. py:class:: FactionType Bases: :py:obj:`wow.models._common.Model` A faction constant with no label, such as ``{"type": "ALLIANCE"}``, as roster entries carry it. .. py:attribute:: type :type: str .. py:class:: GuildRosterCharacter Bases: :py:obj:`wow.models._common.Model` A character as a guild roster lists it. Class and race carry only their ids. .. py:attribute:: key :type: wow.models._common.Link .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: surname :type: str .. py:attribute:: slug :type: str .. py:attribute:: level :type: int .. py:attribute:: playable_class :type: wow.models._common.IdRef .. py:attribute:: playable_race :type: wow.models._common.IdRef .. py:attribute:: faction :type: FactionType .. py:class:: GuildMember Bases: :py:obj:`wow.models._common.Model` One roster entry. ``rank`` 0 is the Guild Master; each higher number is a lower rank. .. py:attribute:: character :type: GuildRosterCharacter .. py:attribute:: rank :type: int .. py:class:: GuildRoster Bases: :py:obj:`wow.models._common.Document` Every member of a guild. .. py:attribute:: guild :type: GuildRef .. py:attribute:: members :type: tuple[GuildMember, ...] :value: ()