Interface IInteractionModuleBase
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Represents a generic interaction module base.
public interface IInteractionModuleBase
Methods
AfterExecute(ICommandInfo)
Method body to be executed after an application command execution.
void AfterExecute(ICommandInfo command)
Parameters
commandICommandInfoCommand information related to the Discord Application Command.
AfterExecuteAsync(ICommandInfo)
Method body to be executed asynchronously after an application command execution.
Task AfterExecuteAsync(ICommandInfo command)
Parameters
commandICommandInfoCommand information related to the Discord Application Command.
Returns
BeforeExecute(ICommandInfo)
Method body to be executed before executing an application command.
void BeforeExecute(ICommandInfo command)
Parameters
commandICommandInfoCommand information related to the Discord Application Command.
BeforeExecuteAsync(ICommandInfo)
Method body to be executed asynchronously before executing an application command.
Task BeforeExecuteAsync(ICommandInfo command)
Parameters
commandICommandInfoCommand information related to the Discord Application Command.
Returns
Construct(ModuleBuilder, InteractionService)
Method body to be executed after the automated module creation is completed and before Build(InteractionService, IServiceProvider, ModuleInfo) is called.
void Construct(ModuleBuilder builder, InteractionService commandService)
Parameters
builderModuleBuilderBuilder class of this module.
commandServiceInteractionServiceCommand Service instance that is building this method.
OnModuleBuilding(InteractionService, ModuleInfo)
Method body to be executed when Build(InteractionService, IServiceProvider, ModuleInfo) is called.
void OnModuleBuilding(InteractionService commandService, ModuleInfo module)
Parameters
commandServiceInteractionServiceCommand Service instance that built this module.
moduleModuleInfoInfo class of this module.
SetContext(IInteractionContext)
Sets the context of this module.
void SetContext(IInteractionContext context)
Parameters
contextIInteractionContext