[Docs] Autocomplete examples (#2288)

* Improved example in int.framework intro

* Added example to `autocompletion`

* modified example to utilise user's input

* added case insensetive matching; mentioned that 25 suggestions is an API limit
This commit is contained in:
Misha133
2022-05-18 10:52:38 +03:00
committed by GitHub
parent b465d609f0
commit 20bd2e9e2f
3 changed files with 37 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ AutocompleteHandlers raise the `AutocompleteHandlerExecuted` event on execution.
A valid AutocompleteHandlers must inherit [AutocompleteHandler] base type and implement all of its abstract methods.
[!code-csharp[Autocomplete Command Example](samples/autocompletion/autocomplete-example.cs)]
### GenerateSuggestionsAsync()
The Interactions Service uses this method to generate a response of an Autocomplete Interaction.