Search Results for

    Show / Hide Table of Contents

    Class UserCommandInfo

    Represents the info class of an attribute based method for command type User.

    Inheritance
    Object
    CommandInfo<CommandParameterInfo>
    ContextCommandInfo
    UserCommandInfo
    Implements
    ICommandInfo
    IApplicationCommandInfo
    Inherited Members
    ContextCommandInfo.CommandType
    ContextCommandInfo.DefaultPermission
    ContextCommandInfo.IsEnabledInDm
    ContextCommandInfo.DefaultMemberPermissions
    ContextCommandInfo.Parameters
    ContextCommandInfo.SupportsWildCards
    ContextCommandInfo.IgnoreGroupNames
    ContextCommandInfo.InvokeModuleEvent(IInteractionContext, IResult)
    CommandInfo<CommandParameterInfo>.Module
    CommandInfo<CommandParameterInfo>.CommandService
    CommandInfo<CommandParameterInfo>.Name
    CommandInfo<CommandParameterInfo>.MethodName
    CommandInfo<CommandParameterInfo>.IsTopLevelCommand
    CommandInfo<CommandParameterInfo>.RunMode
    CommandInfo<CommandParameterInfo>.Attributes
    CommandInfo<CommandParameterInfo>.Preconditions
    CommandInfo<CommandParameterInfo>.CheckPreconditionsAsync(IInteractionContext, IServiceProvider)
    CommandInfo<CommandParameterInfo>.RunAsync(IInteractionContext, Object[], IServiceProvider)
    CommandInfo<CommandParameterInfo>.InvokeEventAndReturn(IInteractionContext, IResult)
    CommandInfo<CommandParameterInfo>.ICommandInfo.Parameters
    CommandInfo<CommandParameterInfo>.ToString()
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public class UserCommandInfo : ContextCommandInfo, ICommandInfo, IApplicationCommandInfo

    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)

    Implements

    ICommandInfo
    IApplicationCommandInfo

    Theme

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