Interface ICommandStore
The service for getting commands.
Namespace: OpenMod.API.Commands
Assembly: OpenMod.API.dll
Syntax
public interface ICommandStore
Methods
| Improve this Doc View SourceGetCommandsAsync()
Gets the commands of all registered ICommandSources.
Declaration
Task<IReadOnlyCollection<ICommandRegistration>> GetCommandsAsync()
Returns
Type | Description |
---|---|
Task<IReadOnlyCollection<ICommandRegistration>> |
InvalidateAsync()
Refreshes the cache. Must be used if a command source has added or removed commands.
Declaration
Task InvalidateAsync()
Returns
Type | Description |
---|---|
Task |