Table of Contents

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

name string

Name of the group.

description string

Description of the group.

Properties

Description

Gets the description of the group.

public string Description { get; }

Property Value

string

Name

Gets the name of the group.

public string Name { get; }

Property Value

string