#TextInputStyle not available?

10 messages · Page 1 of 1 (latest)

wicked wigeon
#

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);
steady tigerBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
cerulean dune
#

wdym by "does not provide any imports"?

#

TextInputStyle is exported

wicked wigeon
cerulean dune
#

some people's webstorm get funky with re-exports

#

no idea why

#

you can try adding the import manually

wicked wigeon
#

didn't think of that

#

and it did actually work