Class SubSlashCommandAttribute
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
Sub slash command allowing to create nested slash commands within a slash command.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public class SubSlashCommandAttribute : Attribute
- Inheritance
-
SubSlashCommandAttribute
- Inherited Members
Constructors
SubSlashCommandAttribute(string, string)
Sub slash command allowing to create nested slash commands within a slash command.
public SubSlashCommandAttribute(string name, string description)
Parameters
name
stringName of the sub slash command (1-32 characters). description
stringDescription of the sub slash command (1-100 characters).
Properties
Description
Description of the sub slash command (1-100 characters).
public string Description { get; }
Property Value
Name
Name of the sub slash command (1-32 characters).
public string Name { get; }