Source code for wow._sync.resources.guild_crest

 1# Generated by scripts/unasync.py from src/wow/_async/resources/guild_crest.py. Do not edit.
 2"""Routes of the Guild Crest API."""
 3
 4from wow._sync._resource import Resource
 5from wow.models._common import Media
 6from wow.models.guild_crest import GuildCrestComponentsIndex
 7
 8__all__ = ["GuildCrests"]
 9
10
[docs] 11class GuildCrests(Resource): 12 """``client.guild_crests``: the emblems, borders and colors guild crests use.""" 13 14 __slots__ = () 15
[docs] 16 def index(self) -> GuildCrestComponentsIndex: 17 """List every selectable emblem, border and color.""" 18 return self._get("static", "/data/wow/guild-crest/index", GuildCrestComponentsIndex)
19
[docs] 20 def border_media(self, border_id: int) -> Media: 21 """Get a crest border's rendered image.""" 22 return self._get("static", f"/data/wow/media/guild-crest/border/{border_id}", Media)
23
[docs] 24 def emblem_media(self, emblem_id: int) -> Media: 25 """Get a crest emblem's rendered image.""" 26 return self._get("static", f"/data/wow/media/guild-crest/emblem/{emblem_id}", Media)