TypeError Cannot read properties of undefined (reading 'getTextInputValue')
Hey there! I'm currently trying to create a Modal which I can fill information into to set my bot's changelog,
I've followed everything as mentioned by the discord.js guide, yet I am getting the error, I have added the arguments into my interactionCreate.js file, awaited the showModal() and what not, here is my code:
8 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
https://sourceb.in/8eYnBdy8G9 is my code
My error is described in the title
interaction.fields isnt a thing for commandInteractions
In the guide, its written as that
interaction being a modalInteraction
Not the slashcommand
So, I'm doing all this in my SlashCommand, how do I convert it to a modalInteraction
Do I need to do it in my interactionCreate event?