Search Results for

    Show / Hide Table of Contents

    Class GroupAttribute

    Create nested Slash Commands by marking a module as a command group.

    Inheritance
    Object
    GroupAttribute
    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 Source

    GroupAttribute(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 Source

    Description

    Gets the description of the group.

    Declaration
    public string Description { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Name

    Gets the name of the group.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.9.0