Class CommandAttribute
Marks this method as a command.
Inheritance
System.Object
CommandAttribute
Namespace: DSharpPlus.CommandsNext.Attributes
Assembly: cs.temp.dll.dll
Syntax
public sealed class CommandAttribute : Attribute
Constructors
CommandAttribute()
Marks this method as a command, using the method's name as command name.
Declaration
public CommandAttribute()
CommandAttribute(String)
Marks this method as a command with specified name.
Declaration
public CommandAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of this command. |
Properties
Name
Gets the name of this command.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |