Skip to content
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

Merged
merged 7 commits into from
Oct 27, 2021
Merged

document autocomplete #3996

merged 7 commits into from
Oct 27, 2021

Conversation

devsnek
Copy link
Contributor

@devsnek devsnek commented Oct 25, 2021

No description provided.

@devsnek devsnek requested a review from msciotti October 26, 2021 20:29
Copy link
Contributor

@msciotti msciotti left a 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 |
Copy link
Contributor

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.
Copy link
Contributor

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**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants