using System; namespace Discord.Interactions { /// /// Create nested Slash Commands by marking a module as a command group. /// /// /// commands wil not be affected by this. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public class GroupAttribute : Attribute { /// /// Gets the name of the group. /// public string Name { get; } /// /// Gets the description of the group. /// public string Description { get; } /// /// Create a command group. /// /// Name of the group. /// Description of the group. public GroupAttribute (string name, string description) { Name = name; Description = description; } } }