Skip to content

fix(SelectMenu, TextInput): Add Required field and omitempty to TextInput.Label#1672

Merged
FedorLap2006 merged 7 commits intobwmarrin:masterfrom
Tesohh:fix-modal-gotchas
Feb 14, 2026
Merged

fix(SelectMenu, TextInput): Add Required field and omitempty to TextInput.Label#1672
FedorLap2006 merged 7 commits intobwmarrin:masterfrom
Tesohh:fix-modal-gotchas

Conversation

@Tesohh
Copy link
Contributor

@Tesohh Tesohh commented Oct 29, 2025

Hi, (thanks for merging my Labels PR by the way), I was adding modals to my bot and run into a few minor issues.

  1. I added the Required field SelectMenu. (as seen in https://discord.com/developers/docs/components/reference#user-select)
  2. I made TextInput.Label be omitempty so that we don't get an error if we don't specify a Label on the TextInput (which is unsupported, and would have given an error in both cases that it is specified or not) (https://discord.com/developers/docs/components/reference#text-input)

Copy link

@glotchimo glotchimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, ran into the same, glad to see this up, hope it lands soon. Great work on the Label stuff

@muckelba
Copy link

Your changes seem to be working, i was able to use them in my project successfully. Thank you!

@DatGamet
Copy link

@Tesohh do you plan on updating this pr in near future?

@ldemailly
Copy link
Contributor

would be nice to merge/finish this to fix #1674

@FedorLap2006 FedorLap2006 changed the title fix(SelectMenu, TextInput): Add Required field to SelectMenu and omitempty to TextInput.Label fix(SelectMenu, TextInput): Add Required field and omitempty to TextInput.Label Feb 14, 2026
@FedorLap2006 FedorLap2006 merged commit f43dd94 into bwmarrin:master Feb 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants