From f3351b10c779b7cadcc8e40ec791279807c20e34 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Wed, 10 Dec 2025 15:42:13 -0600 Subject: [PATCH] Fix double emoji in embed titles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - draft_views.py: Use create_base_embed() instead of info() for Draft Administration embed to keep custom ⚙️ emoji - charts.py: Same fix for Chart Categories embed with 📊 emoji EmbedTemplate.info/success/error/warning/loading() methods auto-add emoji prefixes, so custom emojis should use create_base_embed() instead. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- commands/utilities/charts.py | 5 +++-- views/draft_views.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/utilities/charts.py b/commands/utilities/charts.py index 9e144f9..e3b1b9c 100644 --- a/commands/utilities/charts.py +++ b/commands/utilities/charts.py @@ -608,9 +608,10 @@ class ChartCategoryGroup(app_commands.Group): categories = self.chart_service.get_categories() if not categories: - embed = EmbedTemplate.info( + embed = EmbedTemplate.create_base_embed( title="📊 Chart Categories", - description="No categories defined. Use `/chart-categories add` to create one." + description="No categories defined. Use `/chart-categories add` to create one.", + color=EmbedColors.INFO ) await interaction.response.send_message(embed=embed, ephemeral=True) return diff --git a/views/draft_views.py b/views/draft_views.py index 8a1fad9..679246b 100644 --- a/views/draft_views.py +++ b/views/draft_views.py @@ -409,9 +409,10 @@ async def create_admin_draft_info_embed( Returns: Discord embed with admin information """ - embed = EmbedTemplate.info( + embed = EmbedTemplate.create_base_embed( title="⚙️ Draft Administration", - description="Current draft configuration and state" + description="Current draft configuration and state", + color=EmbedColors.INFO ) # Current pick