-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document autocomplete #3996
document autocomplete #3996
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nits then lgtm
| DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE | 5 | ACK an interaction and edit a response later, the user sees a loading state | | ||
| DEFERRED_UPDATE_MESSAGE\* | 6 | for components, ACK an interaction and edit the original message later; the user does not see a loading state | | ||
| UPDATE_MESSAGE\* | 7 | for components, edit the message the component was attached to | | ||
| APPLICATION_COMMAND_AUTOCOMPLETE_RESULT | 8 | respond to an interaction autocomplete interaction with suggested choices | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
respond to an autocomplete interaction
Accidentally an extra word
@@ -841,6 +848,32 @@ When someone uses a message command, your application will receive an interactio | |||
} | |||
``` | |||
|
|||
## Autocomplete | |||
|
|||
Autocomplete interactions allow application command option values to be completed by the application as the user types out a command invocation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autocomplete interactions allow your application to dynamically return option suggestions to a user as they type.
An autocomplete interaction **can return partial data** for option values. Your application will receive partial data for any existing user input, as long as that input passes client-side validation. For example, you may receive partial strings, but not invalid ids. The option the user is currently typing will be sent with a `focused = true` boolean.
> warn
> This validation is **client-side only**.
Co-authored-by: Advaith <[email protected]>
No description provided.