Skip to content

Conversation

@minisbett
Copy link
Contributor

@minisbett minisbett commented Feb 21, 2025

Description

This adds support for considering InteractionService._autoServiceScope in autocomplete handlers, creating a new scope for the IServiceProvider passed to GenerateSuggestionsAsync(). The code follows the same concept already applied for command executions here.

Changes

  • Update AutocompleteHandler.ExecuteAsync method

@minisbett
Copy link
Contributor Author

My disposal was previously flawed. I fixed it now, the code takes a bit to understand but is methodically correct and 1:1 mimics previous behavior.

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.

2 participants