def get_embed(self) -> discord.Embed: title, description = abc.EmbedContentGenerator.get_embed_content( "skill", e=self) return discord.Embed( title=title, description=description, url=util.get_link(self.name), color=get_rarity_colour(len(self.levels) + 2)).set_thumbnail( url=util.get_wiki_cdn_url(f"{self.icon_name}.png"))
def get_embed(self) -> discord.Embed: title, description = abc.EmbedContentGenerator.get_embed_content( "chain_coability", e=self) return discord.Embed( title=title, description=description, url=util.get_link(self.generic_name), color=0x006080).set_thumbnail( url=util.get_wiki_cdn_url(f"{self.icon_name}.png"))
def get_abilities_embed(self) -> discord.Embed: title, description = abc.EmbedContentGenerator.get_embed_content( "dragon_abilities", e=self) return discord.Embed( title=title, description=description, url=util.get_link(self.full_name), colour=discord.Embed.Empty if not self.element else self.element.get_colour()).set_thumbnail( url=util.get_wiki_cdn_url(f"{self.icon_name}.png"))
def get_embed(self) -> discord.Embed: title, description = abc.EmbedContentGenerator.get_embed_content( "weapon", e=self) if self.element is not None: colour = self.element.get_colour() elif self.rarity is not None: colour = get_rarity_colour(self.rarity) else: colour = discord.Embed.Empty return discord.Embed( title=title, description=description, url=util.get_link(self.name), colour=colour).set_thumbnail( url=util.get_wiki_cdn_url(f"{self.icon_name}.png"))