sidequest_bot.lib.embeds#
Shared embed styling so every plugin’s output looks like one bot.
Classes#
Palette, matching the guild's rank role colors. |
Functions#
|
Embed with the house color and, by default, a timestamp. |
|
Trim |
|
|
Module Contents#
- class sidequest_bot.lib.embeds.Colors#
Palette, matching the guild’s rank role colors.
- BLIZZARD_BLUE#
- BLUE#
- GOLD#
- GREEN#
- ORANGE#
- PURPLE#
- RED#
- SITE_GOLD#
- SLATE#
- WOWHEAD_RED#
- sidequest_bot.lib.embeds.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.
- sidequest_bot.lib.embeds.truncate(text: str, limit: int = 1024) str#
Trim
textto fit an embed field (default 1024 chars).
- sidequest_bot.lib.embeds.user_line(user: discord.Member | discord.User) str#
@mention (name, ID 123); renders even if the user has left.