DiscordAPIError: Missing Accessible Label – MessageButton
0 reputation · 22 Jan 2020, 07:07 UTC
DiscordAPIError: Missing Accessible Label – MessageButton
Goal: Assess whether discord.js should provide a convenience API for attaching ARIA‑label attributes to interactive components (buttons, select menus) so that screen‑reader users receive descriptive text without requiring a visible label or emoji.
Constraints: The Discord API still mandates a label or emoji field for component acceptance; discord.js v14 validates this before sending, while v13 defers the check to the API response. No consensus exists in the library repository on adding an ARIA‑label helper, leaving developers to manually manage accessibility or rely on the label/emoji field.
Questions: Should discord.js expose a setAriaLabel method that stores the attribute separately from the required label/emoji field? Would this method need to coexist with existing validation in both v13 and v14? How would the library document the distinction between the API‑required label and the ARIA label for assistive technology?