TypeError Cannot read properties of undefined (reading 'getTextInputValue')
Pastebin
const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, Events...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
10 Replies
Unknown Userā¢3y ago
Message Not Public
Sign In & Join Server To View
[email protected]
v18.12.1
Your
interaction
is not a ModalSubmitInteraction
You can get it for example with a collector ChatInputCommandInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
wdym
i already have a filter
š„ Here your interaction is slash command interaction
š© But your modal interaction is here
You can't get fields from slash command interaction.
If you didn't understand this you should learn some JavaScript #rules 2
why would i need a collector tho
To get the modal interaction
Ok, but I don't understand where I put the collector