Search Results for

    Show / Hide Table of Contents

    Class SlashCommandGuildBuildService

    Holds all the methods to build ISlashCommandInfo for guilds only.

    Inheritance
    System.Object
    SlashCommandGuildBuildService
    Implements
    ISlashCommandGuildBuildService
    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 SlashCommandGuildBuildService : ISlashCommandGuildBuildService

    Constructors

    | Improve this Doc View Source

    SlashCommandGuildBuildService(ILogger<SlashCommandGuildBuildService>)

    Initializes a new instance of SlashCommandGuildBuildService.

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

    The Microsoft.Extensions.Logging.ILogger for SlashCommandGuildBuildService.

    Methods

    | Improve this Doc View Source

    GetCommandGuilds(MethodInfo, Boolean)

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

    Declaration
    public IEnumerable<SlashCommandGuildAttribute> GetCommandGuilds(MethodInfo command, bool includeParentAttributes = true)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo command

    The command method that will be used to find the SlashCommandGuildAttributes.

    System.Boolean includeParentAttributes

    Whether or not to include the parents attributes.

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

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

    | Improve this Doc View Source

    GetCommandGuilds(Type)

    Get a System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for a specific SlashCommandModule

    Declaration
    public IEnumerable<SlashCommandGuildAttribute> GetCommandGuilds(Type commandModule)
    Parameters
    Type Name Description
    System.Type commandModule

    The command module that will be used to find the SlashCommandGuildAttribute s.

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

    A System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for the given SlashCommandModule

    Implements

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