#```js
1 messages · Page 1 of 1 (latest)
filtered is checking if choice.startsWith(focusedOption), focused option isnt a string so you cant get this to work
choice.startsWith(focusedOption.value)
interaction.options.getFocused() already returns a string, no need to get a value or name property
so what should i do?
Just use the string
with what?
from what he does in his code, he does (focusedOption.name) if this value is a string then the if make no sense
#rules 5
getFocused() already returns a string, use that string to check if it matches another string
this or what i didnt understand any
If you do not understand what you are doing; maybe you should take a deeper look at how javascript work before going into harder things
i dont understand what should i make a string
focusedOption is a string already.
your if statement doesnt make sense
Try to understand why at least
this if statement from the docs 🙂
send me the doc you are looking at please
they will not disapear
I can help you more because i never used the interaction
what?
I will understand you now, when you make a command /tag, you will see such an options, but this will not be all the options that are available if you write interaction it will apper a lot of options that has interaction word
did you understand?@void wasp
I told you i do not know how this discordjs thing work, please stop pinging and ask more help out of this conversation because i do not know exactly how it work