context property

AutocompleteContext context
final

The context in which the exception occurred.

If the exception was not triggered by a slow response, default options can still be returned by accessing the AutocompleteContext.interaction and calling ApplicationCommandAutocompleteInteraction.respond with the default options.

Implementation

final AutocompleteContext context;