Is it possible to have an autocomplete user command ?

I saw in the documentation that a property of AutocompleteInteraction is "commandType". Does this mean that we can have a user/message command with autocomplete? If so, do you have an example of how this works?

https://discord.js.org/#/docs/discord.js/main/class/AutocompleteInteraction?scrollTo=commandType
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Was this page helpful?