TextInputStyle not available?

i am trying to create a modal, but im unable to do so because TextInputStyle is not available. does not provide any imports or anything...
const favoriteColorInput = new TextInputBuilder()
.setCustomId('favoriteColorInput')
// The label is the prompt the user sees for this input
.setLabel("What's your favorite color?")
// Short means only a single line of text
.setStyle(TextInputStyle.Short);
const favoriteColorInput = new TextInputBuilder()
.setCustomId('favoriteColorInput')
// The label is the prompt the user sees for this input
.setLabel("What's your favorite color?")
// Short means only a single line of text
.setStyle(TextInputStyle.Short);
5 Replies
d.js toolkit
d.js toolkit6d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Amgelo
Amgelo6d ago
wdym by "does not provide any imports"? TextInputStyle is exported
wxip
wxipOP6d ago
No description
Amgelo
Amgelo6d ago
some people's webstorm get funky with re-exports no idea why you can try adding the import manually
wxip
wxipOP6d ago
didn't think of that and it did actually work sorry 😅

Did you find this page helpful?