diff --git a/src/Discord.Net.Commands/IModuleBase.cs b/src/Discord.Net.Commands/IModuleBase.cs
index 3b641ec5f..8b021f4de 100644
--- a/src/Discord.Net.Commands/IModuleBase.cs
+++ b/src/Discord.Net.Commands/IModuleBase.cs
@@ -2,14 +2,34 @@ using Discord.Commands.Builders;
namespace Discord.Commands
{
- internal interface IModuleBase
+ ///
+ /// Represents a generic module base.
+ ///
+ public interface IModuleBase
{
+ ///
+ /// Sets the context of this module base.
+ ///
+ /// The context to set.
void SetContext(ICommandContext context);
+ ///
+ /// Executed before a command is run in this module base.
+ ///
+ /// The command thats about to run.
void BeforeExecute(CommandInfo command);
-
+
+ ///
+ /// Executed after a command is ran in this module base.
+ ///
+ /// The command that ran.
void AfterExecute(CommandInfo command);
+ ///
+ /// Executed when this module is building.
+ ///
+ /// The command service that is building this module.
+ /// The builder constructing this module.
void OnModuleBuilding(CommandService commandService, ModuleBuilder builder);
}
}
diff --git a/src/Discord.Net.Interactions/IInteractionModuleBase.cs b/src/Discord.Net.Interactions/IInteractionModuleBase.cs
index 126b4a67b..e840e6a0f 100644
--- a/src/Discord.Net.Interactions/IInteractionModuleBase.cs
+++ b/src/Discord.Net.Interactions/IInteractionModuleBase.cs
@@ -1,7 +1,14 @@
namespace Discord.Interactions
{
- internal interface IInteractionModuleBase
+ ///
+ /// Represents a generic interaction module base.
+ ///
+ public interface IInteractionModuleBase
{
+ ///
+ /// Sets the context of this module.
+ ///
+ ///
void SetContext (IInteractionContext context);
///