Skip to content

API reference Obsidian.API

BaseSuggestionProviderAttribute class

Supplies suggestions for one command parameter. Subclass it for suggestions computed at typing time, such as names of things that exist on the server; use SuggestionsAttribute for a fixed list.

public abstract class BaseSuggestionProviderAttribute : Attribute, ISuggestionProvider

In Obsidian.API.

Remarks

See ISuggestionProvider for how suggestions are offered.

Constructors

protected BaseSuggestionProviderAttribute();

Methods

public abstract ValueTask<IEnumerable<CommandSuggestion>> GetSuggestionsAsync(CommandContext context);

On this page