sidequest_bot.lib.embeds#

Shared embed styling so every plugin’s output looks like one bot.

Classes#

Colors

Palette, matching the guild's rank role colors.

Functions#

make_embed(→ discord.Embed)

Embed with the house color and, by default, a timestamp.

truncate(→ str)

Trim text to fit an embed field (default 1024 chars).

user_line(→ str)

@mention (name, ID 123); renders even if the user has left.

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 text to 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.