Table of Contents

Class SubSlashCommandGroupBuilder

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll

Sub slash command allowing to create nested slash commands within a slash command.

public class SubSlashCommandGroupBuilder
Inheritance
SubSlashCommandGroupBuilder
Inherited Members

Constructors

SubSlashCommandGroupBuilder(string, string)

Sub slash command allowing to create nested slash commands within a slash command.

public SubSlashCommandGroupBuilder(string name, string description)

Parameters

name string
Name of the sub slash command (1-32 characters).
description string
Description of the sub slash command (1-100 characters).

Properties

Description

Description of the command (1-100 characters).

public string Description { get; }

Property Value

string

Name

Name of the command (1-32 characters).

public string Name { get; }

Property Value

string

Methods

AddSubCommand(string, string, Delegate)

Adds a sub command to a command group.

public SubSlashCommandBuilder AddSubCommand(string name, string description, Delegate handler)

Parameters

name string
Name of the command (1-32 characters).
description string
Description of the command (1-100 characters).
handler Delegate
Handler that represents the body of the command.

Returns

SubSlashCommandBuilder

The created sub command builder.