Search Results for

    Show / Hide Table of Contents

    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 Source

    ExecuteRequirementsAsync(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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX