Class GroupAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Create nested Slash Commands by marking a module as a command group.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class GroupAttribute : Attribute
- Inheritance
-
GroupAttribute
- Inherited Members
Remarks
ContextCommandAttribute commands wil not be affected by this.
Constructors
GroupAttribute(string, string)
Create a command group.
public GroupAttribute(string name, string description)
Parameters
Properties
Description
Gets the description of the group.
public string Description { get; }
Property Value
Name
Gets the name of the group.
public string Name { get; }