Class AliasAttribute
Marks a command method as having one or more aliases (shorthand names). Aliases can be used instead of the full command path. For example, [Alias("pm")] on a "message send" command allows "/pm" instead of "/message send".
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class AliasAttribute : Attribute
- Inheritance
-
AliasAttribute
- Inherited Members
Constructors
AliasAttribute(string)
Initializes a new instance with a single alias.
public AliasAttribute(string alias)
Parameters
aliasstring
AliasAttribute(params string[])
Initializes a new instance with multiple aliases.
public AliasAttribute(params string[] aliases)
Parameters
aliasesstring[]
Properties
Aliases
The alias names (without leading slashes).
public string[] Aliases { get; }
Property Value
- string[]