Class ContextCommandInfo
Base information class for attribute based context command handlers.
Inheritance
ContextCommandInfo
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class ContextCommandInfo : CommandInfo<CommandParameterInfo>, ICommandInfo, IApplicationCommandInfo
Properties
| Improve this Doc View SourceCommandType
Gets the type of this command.
Declaration
public ApplicationCommandType CommandType { get; }
Property Value
Type | Description |
---|---|
ApplicationCommandType |
DefaultMemberPermissions
Gets the default permissions needed for executing this command.
Declaration
public GuildPermission? DefaultMemberPermissions { get; }
Property Value
Type | Description |
---|---|
Nullable<GuildPermission> |
DefaultPermission
Gets the DefaultPermission of this command.
Declaration
public bool DefaultPermission { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
IsNsfw
Gets whether this command can is age restricted.
Declaration
public bool IsNsfw { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 SourceInvokeModuleEvent(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)