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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
vance_
vance_OP3y ago
SourceBin
newchangelog.js
Instantly share your code with the world.
vance_
vance_OP3y ago
My error is described in the title
Parogo_72
Parogo_723y ago
interaction.fields isnt a thing for commandInteractions
vance_
vance_OP3y ago
In the guide, its written as that
vance_
vance_OP3y ago
Parogo_72
Parogo_723y ago
interaction being a modalInteraction Not the slashcommand
vance_
vance_OP3y ago
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?
Want results from more Discord servers?
Add your server