Interface ISlashCommandRequirementService
Holds all the methods to execute all InteractionRequirementAttributes for a slash command.
Namespace: Color_Chan.Discord.Commands.Services
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface ISlashCommandRequirementService
Methods
| Improve this Doc View SourceExecuteRequirementsAsync(IEnumerable<InteractionRequirementAttribute>, IInteractionContext, IServiceProvider)
Executes all InteractionRequirementAttributes for a ISlashCommandInfo.
Declaration
Task<Result> ExecuteRequirementsAsync(IEnumerable<InteractionRequirementAttribute> requirements, IInteractionContext context, IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<InteractionRequirementAttribute> | requirements | The requirements that will be executed. |
IInteractionContext | context | The IInteractionContext containing the current data for the command. |
System.IServiceProvider | serviceProvider | The System.IServiceProvider containing the dependencies for the InteractionRequirementAttributes. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Result> | The Result containing the result of executing the slash command requirements. |