Class GroupAttribute
Create nested Slash Commands by marking a module as a command group.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class GroupAttribute : Attribute
Remarks
ContextCommandAttribute commands wil not be affected by this.
Constructors
| Improve this Doc View SourceGroupAttribute(String, String)
Create a command group.
Declaration
public GroupAttribute(string name, string description)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the group. |
String | description | Description of the group. |
Properties
| Improve this Doc View SourceDescription
Gets the description of the group.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
Name
Gets the name of the group.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |