AutocompleteInteraction options#getUser doesn't exist
Why is it saying that the getUser doesn't exist even tho it does?
![](https://utfs.io/f/9439bc98-e551-4aa0-acf8-752ff92e9ff8-1nq2cb.png)
Solution:Jump to solution
auto complete doesn't have getUser
user options cannot have autocomplete set to true
read the docs ...
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
6 Replies
1. Always show full code.
3. ![that](https://cdn.discordapp.com/emojis/519441210272645120.png)
![that](https://cdn.discordapp.com/emojis/519441210272645120.png)
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson) ❯ How to ask questions the smart way (Raymond)
Solution
auto complete doesn't have getUser
user options cannot have autocomplete set to true
read the docs
1. https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
2. https://discord.com/developers/docs/interactions/application-commands#autocomplete
3. https://discordjs.guide/slash-commands/autocomplete.html#autocomplete
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Typescript showed that it has so I got a bit confused. Thank you for clarifying things.
it shows it DOESNT have it
From
CommandIntercationOptionResolver
Omit
"getMessage" | "getUser"
I solved it already thanks for the note tho always appreciated.