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

Interface ICommandExecutor

The service for executing commands.

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

Methods

| Improve this Doc View Source

ExecuteAsync(ICommandActor, String[], String)

Executes a command.

Declaration
Task<ICommandContext> ExecuteAsync(ICommandActor actor, string[] args, string prefix)
Parameters
Type Name Description
ICommandActor actor

The command actor.

System.String[] args

The command args.

System.String prefix

The command prefix. Can be empty.

Returns
Type Description
Task<ICommandContext>

The created command context.

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)