TypeError: Cannot read properties of null (reading 'value') - [email protected]
I get the error spammed when I open the menu to select country.
23 Replies
- 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 OPShow the full error
And update djs
and dont access internal properties
getSubcommand() exists
my full code is:
and error:
Your error probably is because there is no such options or it wasnt passed in
And use getX(), x being the type you expect
But still update djs because you will face more errors
pastebin?
i will try real quick
like ?
Pastebin
const { EmbedBuilder, ApplicationCommandType } = require('discord.j...
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.
<:i_couldnt_finish_the_project:586981416827617286>
^
it is here mate
ok here is with getsubcommand() https://pastebin.com/jnNkyjBS
Pastebin
const { EmbedBuilder, ApplicationCommandType } = require('discord.j...
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.
alright, 1minute
now when I try to open /order add I instantly get thats after i added the method
I changed to
oh yea forgot, 1 second
Pastebin
AutocompleteInteraction { type: 4, id: '1201564664451051551', ap...
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.
damn this autocomplete is so strange old non slash commands were easier ;d
i see, tomorrow i will see what i can do to fix my issue
i don't get why when i open the field which should pop up autocomplete suggestions it instantly execute the code and goes directly to line 242, like before it wasn't like that
i am very confused
I did few tests and noticed that this happens when I replace .value to like getString and etc
i guess this is very bad way to do it but now i dont get error for value spammed, if you can help me with better solution I would highly appreciate it
https://sourceb.in/Lq2EtFVyWy i have done check for autocomplete
so like to ?
thanks for that tip
the only thing which i found is to ignore the error but that is not very good solution
the change in the if helped, I can't use the method isAutocomplete because it is not function maybe because of djs version but just autocomplete works
i will update it
i see
also I am not trying to jump from theme to theme but when i search for country which is not showing because it is sliced it don't find it
ohhh looks like the capital letters matter, I didn't know that
I appreciate the help ,thanks so much I am going to update djs now
should i mark the post as solved?
thanks mate, have a nice night
or day