--- 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$'