Search Results for

    Show / Hide Table of Contents

    Class AutocompleteCommandInfo

    Represents the info class of an attribute based method for handling Autocomplete Interaction events.

    Inheritance
    Object
    CommandInfo<CommandParameterInfo>
    AutocompleteCommandInfo
    Implements
    ICommandInfo
    Inherited Members
    CommandInfo<CommandParameterInfo>.Module
    CommandInfo<CommandParameterInfo>.CommandService
    CommandInfo<CommandParameterInfo>.Name
    CommandInfo<CommandParameterInfo>.MethodName
    CommandInfo<CommandParameterInfo>.IgnoreGroupNames
    CommandInfo<CommandParameterInfo>.IsTopLevelCommand
    CommandInfo<CommandParameterInfo>.RunMode
    CommandInfo<CommandParameterInfo>.Attributes
    CommandInfo<CommandParameterInfo>.Preconditions
    CommandInfo<CommandParameterInfo>.TreatNameAsRegex
    CommandInfo<CommandParameterInfo>.CheckPreconditionsAsync(IInteractionContext, IServiceProvider)
    CommandInfo<CommandParameterInfo>.InvokeEventAndReturn<T>(IInteractionContext, T)
    CommandInfo<CommandParameterInfo>.ICommandInfo.Parameters
    CommandInfo<CommandParameterInfo>.ToString()
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public sealed class AutocompleteCommandInfo : CommandInfo<CommandParameterInfo>, ICommandInfo

    Properties

    | Improve this Doc View Source

    CommandName

    Gets the name of the target command.

    Declaration
    public string CommandName { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ParameterName

    Gets the name of the target parameter.

    Declaration
    public string ParameterName { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Parameters

    Gets a collection of the parameters of this command.

    Declaration
    public override IReadOnlyList<CommandParameterInfo> Parameters { get; }
    Property Value
    Type Description
    IReadOnlyList<CommandParameterInfo>
    Overrides
    Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.Parameters
    | Improve this Doc View Source

    SupportsWildCards

    Gets whether this command supports wild card patterns.

    Declaration
    public override bool SupportsWildCards { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.SupportsWildCards

    Methods

    | Improve this Doc View Source

    ExecuteAsync(IInteractionContext, IServiceProvider)

    Executes the command with the provided context.

    Declaration
    public override async Task<IResult> ExecuteAsync(IInteractionContext context, IServiceProvider services)
    Parameters
    Type Name Description
    IInteractionContext context

    The execution context.

    IServiceProvider services

    Dependencies that will be used to create the module instance.

    Returns
    Type Description
    Task<IResult>

    A task representing the execution process. The task result contains the execution result.

    Overrides
    Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.ExecuteAsync(Discord.IInteractionContext, IServiceProvider)
    | Improve this Doc View Source

    GetLogString(IInteractionContext)

    Declaration
    protected override string GetLogString(IInteractionContext context)
    Parameters
    Type Name Description
    IInteractionContext context
    Returns
    Type Description
    String
    Overrides
    Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.GetLogString(Discord.IInteractionContext)
    | Improve this Doc View Source

    InvokeModuleEvent(IInteractionContext, IResult)

    Declaration
    protected override Task InvokeModuleEvent(IInteractionContext context, IResult result)
    Parameters
    Type Name Description
    IInteractionContext context
    IResult result
    Returns
    Type Description
    Task
    Overrides
    Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.InvokeModuleEvent(Discord.IInteractionContext, Discord.Interactions.IResult)
    | Improve this Doc View Source

    ParseArgumentsAsync(IInteractionContext, IServiceProvider)

    Declaration
    protected override Task<IResult> ParseArgumentsAsync(IInteractionContext context, IServiceProvider services)
    Parameters
    Type Name Description
    IInteractionContext context
    IServiceProvider services
    Returns
    Type Description
    Task<IResult>
    Overrides
    Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.ParseArgumentsAsync(Discord.IInteractionContext, IServiceProvider)

    Implements

    ICommandInfo

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0