sidequest_bot.lib.embeds ======================== .. py:module:: sidequest_bot.lib.embeds .. autoapi-nested-parse:: Shared embed styling so every plugin's output looks like one bot. Classes ------- .. autoapisummary:: sidequest_bot.lib.embeds.Colors Functions --------- .. autoapisummary:: sidequest_bot.lib.embeds.make_embed sidequest_bot.lib.embeds.truncate sidequest_bot.lib.embeds.user_line Module Contents --------------- .. py:class:: Colors Palette, matching the guild's rank role colors. .. py:attribute:: BLIZZARD_BLUE .. py:attribute:: BLUE .. py:attribute:: GOLD .. py:attribute:: GREEN .. py:attribute:: ORANGE .. py:attribute:: PURPLE .. py:attribute:: RED .. py:attribute:: SITE_GOLD .. py:attribute:: SLATE .. py:attribute:: WOWHEAD_RED .. py:function:: make_embed(title: str | None = None, description: str | None = None, *, color: discord.Colour = Colors.BLUE, timestamp: bool = True) -> discord.Embed Embed with the house color and, by default, a timestamp. .. py:function:: truncate(text: str, limit: int = 1024) -> str Trim ``text`` to fit an embed field (default 1024 chars). .. py:function:: user_line(user: discord.Member | discord.User) -> str ``@mention (name, ID 123)``; renders even if the user has left.