OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface ICommandSource

Represents a command source that provides commands.

Namespace: OpenMod.API.Commands
Assembly: OpenMod.API.dll
Syntax
public interface ICommandSource

Methods

| Improve this Doc View Source

GetCommandsAsync()

Gets the commands from the command source.

Declaration
Task<IReadOnlyCollection<ICommandRegistration>> GetCommandsAsync()
Returns
Type Description
Task<IReadOnlyCollection<ICommandRegistration>>

Commands of this provider.

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)