Search Results for

    Show / Hide Table of Contents

    Class ContextCommandInfo

    Base information class for attribute based context command handlers.

    Inheritance
    Object
    CommandInfo<CommandParameterInfo>
    ContextCommandInfo
    MessageCommandInfo
    UserCommandInfo
    Implements
    ICommandInfo
    IApplicationCommandInfo
    Inherited Members
    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>.ExecuteAsync(IInteractionContext, IServiceProvider)
    CommandInfo<CommandParameterInfo>.GetLogString(IInteractionContext)
    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 abstract class ContextCommandInfo : CommandInfo<CommandParameterInfo>, ICommandInfo, IApplicationCommandInfo

    Properties

    | Improve this Doc View Source

    CommandType

    Gets the type of this command.

    Declaration
    public ApplicationCommandType CommandType { get; }
    Property Value
    Type Description
    ApplicationCommandType
    | Improve this Doc View Source

    DefaultMemberPermissions

    Gets the default permissions needed for executing this command.

    Declaration
    public GuildPermission? DefaultMemberPermissions { get; }
    Property Value
    Type Description
    Nullable<GuildPermission>
    | Improve this Doc View Source

    DefaultPermission

    Gets the DefaultPermission of this command.

    Declaration
    public bool DefaultPermission { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IgnoreGroupNames

    Gets true if this command will be registered and executed as a standalone command, unaffected by the GroupAttributes of of the commands parents.

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

    IsEnabledInDm

    Gets whether this command can be used in DMs.

    Declaration
    public bool IsEnabledInDm { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Parameters

    Gets a collection of the parameters of this command.

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

    SupportsWildCards

    Gets wheter 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

    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)

    Implements

    ICommandInfo
    IApplicationCommandInfo

    Theme

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