Add before and after execute async (#1998)

This commit is contained in:
Quin Lynch
2021-12-24 10:37:36 -04:00
committed by GitHub
parent 5446bfe343
commit 9f124b25ab
3 changed files with 23 additions and 1 deletions

View File

@@ -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) { }