Add before and after execute async (#1998)
This commit is contained in:
@@ -20,6 +20,12 @@ namespace Discord.Interactions
|
||||
/// <inheritdoc/>
|
||||
public virtual void BeforeExecute (ICommandInfo command) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public virtual Task BeforeExecuteAsync(ICommandInfo command) => Task.CompletedTask;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public virtual Task AfterExecuteAsync(ICommandInfo command) => Task.CompletedTask;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public virtual void OnModuleBuilding (InteractionService commandService, ModuleInfo module) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user