Class CategoryAttribute
- Namespace
- Signal.Application.Commands
- Assembly
- Signal.Application.dll
Lists commands under a heading in /help. On a module it applies to all of its commands; on a method it
overrides the module's category. Command groups get their own heading and ignore categories.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class CategoryAttribute : Attribute
- Inheritance
-
CategoryAttribute
- Inherited Members
Constructors
CategoryAttribute(string)
Lists commands under a heading in /help. On a module it applies to all of its commands; on a method it
overrides the module's category. Command groups get their own heading and ignore categories.
public CategoryAttribute(string name)
Parameters
namestringThe heading, e.g.
Moderation.
Properties
Name
The heading.
public string Name { get; }