Class CommandAttribute
Marks the execution information for a command.
Assembly: Discord.Net.Commands.dll​
View Source​
Declaration
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class CommandAttribute : Attribute, _Attribute
Properties​
Text​
Gets the text that has been set to be recognized as a command.
View Source​
Declaration
public string Text { get; }
RunMode​
Specifies the Discord.Commands.CommandAttribute.RunMode of the command. This affects how the command is executed.
View Source​
Declaration
public RunMode RunMode { get; set; }
IgnoreExtraArgs​
View Source​
Declaration
public bool? IgnoreExtraArgs { get; }
Implements​
System.Runtime.InteropServices._Attribute