You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Discord.Commands.Builders;
- using System.Threading.Tasks;
-
- namespace Discord.Commands
- {
- /// <summary>
- /// Represents a generic module base.
- /// </summary>
- public interface IModuleBase
- {
- /// <summary>
- /// Sets the context of this module base.
- /// </summary>
- /// <param name="context">The context to set.</param>
- void SetContext(ICommandContext context);
-
- /// <summary>
- /// Executed asynchronously before a command is run in this module base.
- /// </summary>
- /// <param name="command">The command thats about to run.</param>
- Task BeforeExecuteAsync(CommandInfo command);
-
- /// <summary>
- /// Executed before a command is run in this module base.
- /// </summary>
- /// <param name="command">The command thats about to run.</param>
- void BeforeExecute(CommandInfo command);
-
- /// <summary>
- /// Executed asynchronously after a command is run in this module base.
- /// </summary>
- /// <param name="command">The command thats about to run.</param>
- Task AfterExecuteAsync(CommandInfo command);
-
- /// <summary>
- /// Executed after a command is ran in this module base.
- /// </summary>
- /// <param name="command">The command that ran.</param>
- void AfterExecute(CommandInfo command);
-
- /// <summary>
- /// Executed when this module is building.
- /// </summary>
- /// <param name="commandService">The command service that is building this module.</param>
- /// <param name="builder">The builder constructing this module.</param>
- void OnModuleBuilding(CommandService commandService, ModuleBuilder builder);
- }
- }
|