store: Fix: publish-scorecard error embed shows user-provided URL and removes double emoji
This commit is contained in:
parent
a505e8ce26
commit
cb92f36bb5
@ -0,0 +1,28 @@
|
||||
---
|
||||
id: 543706bd-8352-4a4d-8afb-957e0f5e6ef6
|
||||
type: fix
|
||||
title: "Fix: publish-scorecard error embed shows user-provided URL and removes double emoji"
|
||||
tags: [major-domo, scorebug, ux, fix, embed-template, discord-bot]
|
||||
importance: 0.55
|
||||
confidence: 0.8
|
||||
created: "2026-02-20T20:06:31.417368+00:00"
|
||||
updated: "2026-02-20T20:06:31.417368+00:00"
|
||||
---
|
||||
|
||||
# Fix: publish-scorecard Error Embed UX
|
||||
|
||||
## Problem
|
||||
When a user pasted a Discord message link instead of a Google Sheets URL, the error embed gave no indication of what URL was actually received. This made debugging confusing for the user.
|
||||
|
||||
Also, the error embed had a redundant ❌ emoji in the description — `EmbedTemplate.error()` already adds one to the title automatically, resulting in double emoji.
|
||||
|
||||
## Changes (`commands/gameplay/scorebug.py`)
|
||||
|
||||
1. Added `"**You provided:** \`{url}\`"` to the `SheetsException` error embed description so the user can immediately see what they submitted.
|
||||
2. Removed the manually added ❌ from the description (double emoji — `EmbedTemplate.error()` auto-adds one to the title).
|
||||
|
||||
## Pattern Reminder
|
||||
`EmbedTemplate.success()`, `EmbedTemplate.error()`, `EmbedTemplate.warning()`, `EmbedTemplate.info()`, `EmbedTemplate.loading()` all auto-add emoji prefixes to the title. Never put emoji in the `title` parameter, and never manually add a matching emoji to the description.
|
||||
|
||||
## Closes
|
||||
Issue #39 (UX sub-item). Branch: `fix/scorebug-bugs`.
|
||||
Loading…
Reference in New Issue
Block a user