Search Results for

    Show / Hide Table of Contents

    Interface ISlashCommandRequirementBuildService

    Holds all the methods to build InteractionRequirementAttribute for the slash commands.

    Namespace: Color_Chan.Discord.Commands.Services.Builders
    Assembly: Color-Chan.Discord.Commands.dll
    Syntax
    public interface ISlashCommandRequirementBuildService

    Methods

    | Improve this Doc View Source

    GetCommandRequirements(MethodInfo)

    Get a System.Collections.Generic.IEnumerable<T> of InteractionRequirementAttribute for a specific command.

    Declaration
    IEnumerable<InteractionRequirementAttribute> GetCommandRequirements(MethodInfo command)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo command

    The command method that will be used to find the InteractionRequirementAttribute s.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<InteractionRequirementAttribute>

    A System.Collections.Generic.IEnumerable<T> of InteractionRequirementAttribute for the given command.

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