- 313 new markdown files created - 30 relationships embedded - 313 entries indexed - State initialized with usage data
13 lines
610 B
Markdown
13 lines
610 B
Markdown
---
|
|
id: d32832d7-cfce-4618-bb19-1497b11698a6
|
|
type: fix
|
|
title: "Discord autocomplete sends display text not value"
|
|
tags: [major-domo, python, discord, autocomplete, fix]
|
|
importance: 0.6
|
|
confidence: 0.8
|
|
created: "2025-12-13T00:59:43.879353+00:00"
|
|
updated: "2025-12-13T00:59:43.879353+00:00"
|
|
---
|
|
|
|
When users select from Discord autocomplete dropdown, it sometimes sends the display text (e.g., 'Mason Miller (RP) - 2.50 sWAR') instead of the value ('Mason Miller'). Added _parse_player_name() function with regex to strip position and sWAR info from input. Pattern: r'^(.+?)\s*\([A-Z0-9]+\)\s*-\s*[\d.]+\s*sWAR$'
|