Search Results for

    Show / Hide Table of Contents

    Class SlashCommandRequirementBuildService

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

    Inheritance
    System.Object
    SlashCommandRequirementBuildService
    Implements
    ISlashCommandRequirementBuildService
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Commands.Services.Implementations.Builders
    Assembly: Color-Chan.Discord.Commands.dll
    Syntax
    public class SlashCommandRequirementBuildService : ISlashCommandRequirementBuildService

    Constructors

    | Improve this Doc View Source

    SlashCommandRequirementBuildService(ILogger<SlashCommandRequirementBuildService>)

    Initializes a new instance of SlashCommandRequirementBuildService.

    Declaration
    public SlashCommandRequirementBuildService(ILogger<SlashCommandRequirementBuildService> logger)
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.ILogger<SlashCommandRequirementBuildService> logger

    The Microsoft.Extensions.Logging.ILogger for SlashCommandRequirementBuildService.

    Methods

    | Improve this Doc View Source

    GetCommandRequirements(MethodInfo)

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

    Declaration
    public 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.

    Implements

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