Class BaseCommandModule
Represents a base class for all command modules.
Namespace: DisCatSharp.CommandsNext
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public abstract class BaseCommandModule
Methods
| Improve this Doc View SourceAfterExecutionAsync(CommandContext)
Called after a command in the implementing module is successfully executed.
Declaration
public virtual Task AfterExecutionAsync(CommandContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | ctx | Context in which the method is being executed. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
BeforeExecutionAsync(CommandContext)
Called before a command in the implementing module is executed.
Declaration
public virtual Task BeforeExecutionAsync(CommandContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | ctx | Context in which the method is being executed. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |