invalidateAutocompleteCache

open fun invalidateAutocompleteCache(autocompleteHandlerName: String)(source)

Deprecated

Moved to ApplicationCommandsContext

Replace with

applicationCommandsContext.invalidateAutocompleteCache(autocompleteHandlerName)

Invalidates the autocomplete cache of the specified autocomplete handler.

This means that the cache of this autocomplete handler will be fully cleared.

Parameters

autocompleteHandlerName

The name of the autocomplete handler, supplied at AutocompleteHandler.name or AutocompleteManager.autocomplete


open fun invalidateAutocompleteCache(autocompleteHandler: KFunction<Collection<Any>>)(source)

Deprecated

Moved to ApplicationCommandsContext

Replace with

applicationCommandsContext.invalidateAutocompleteCache(autocompleteHandler)

Invalidates the autocomplete cache of the specified autocomplete handler.

This means that the cache of this autocomplete handler will be fully cleared.

Parameters

autocompleteHandler

The autocomplete handler, supplied at AutocompleteManager.autocomplete