Fix double emoji in embed titles
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
483f1f492f
commit
f3351b10c7
@ -608,9 +608,10 @@ class ChartCategoryGroup(app_commands.Group):
|
|||||||
categories = self.chart_service.get_categories()
|
categories = self.chart_service.get_categories()
|
||||||
|
|
||||||
if not categories:
|
if not categories:
|
||||||
embed = EmbedTemplate.info(
|
embed = EmbedTemplate.create_base_embed(
|
||||||
title="📊 Chart Categories",
|
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)
|
await interaction.response.send_message(embed=embed, ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|||||||
@ -409,9 +409,10 @@ async def create_admin_draft_info_embed(
|
|||||||
Returns:
|
Returns:
|
||||||
Discord embed with admin information
|
Discord embed with admin information
|
||||||
"""
|
"""
|
||||||
embed = EmbedTemplate.info(
|
embed = EmbedTemplate.create_base_embed(
|
||||||
title="⚙️ Draft Administration",
|
title="⚙️ Draft Administration",
|
||||||
description="Current draft configuration and state"
|
description="Current draft configuration and state",
|
||||||
|
color=EmbedColors.INFO
|
||||||
)
|
)
|
||||||
|
|
||||||
# Current pick
|
# Current pick
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user