Class CommandAttribute
Marks a method as a Command for Commands System.
Inherited Members
Namespace: TehGM.Wolfringo.Commands
Assembly: Wolfringo.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class CommandAttribute : CommandAttributeBase
Remarks
This attribute represents a normal, simple command.
Constructors
| Improve this Doc View SourceCommandAttribute(String)
Declaration
public CommandAttribute(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text that will trigger the command. |
Properties
| Improve this Doc View SourceText
Text that will trigger the command.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
This text needs to be right after prefix, or at the beginning of the message if prefix is not required.