Class ContextCommandAttribute
Base attribute for creating a Context Commands.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class ContextCommandAttribute : Attribute
Properties
| Improve this Doc View SourceCommandType
Gets the type of this Context Command.
Declaration
public ApplicationCommandType CommandType { get; }
Property Value
Type | Description |
---|---|
ApplicationCommandType |
Name
Gets the name of this Context Command.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
RunMode
Gets the run mode this command gets executed with.
Declaration
public RunMode RunMode { get; }
Property Value
Type | Description |
---|---|
RunMode |