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
namestringName of the sub slash command (1-32 characters). descriptionstringDescription of the sub slash command (1-100 characters).
Properties
Description
Description of the command (1-100 characters).
public string Description { get; }
Property Value
Name
Name of the command (1-32 characters).
public string Name { get; }
Property Value
Methods
AddSubCommand(string, string, Delegate)
Adds a sub command to a command group.
public SubSlashCommandBuilder AddSubCommand(string name, string description, Delegate handler)
Parameters
namestringName of the command (1-32 characters). descriptionstringDescription of the command (1-100 characters). handlerDelegateHandler that represents the body of the command.
Returns
- SubSlashCommandBuilder
The created sub command builder.