Class SlashCommandAttribute
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
Slash commands are application commands that are invoked by typing a slash (/) in the chat input box. They allow users to interact with your application.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public class SlashCommandAttribute : ApplicationCommandAttribute
- Inheritance
-
SlashCommandAttribute
- Inherited Members
Constructors
SlashCommandAttribute(string, string)
Slash commands are application commands that are invoked by typing a slash (/) in the chat input box. They allow users to interact with your application.
public SlashCommandAttribute(string name, string description)
Parameters
name
stringName of the command (1-32 characters). Must be lowercase.description
stringDescription of the command (1-100 characters).
Properties
Description
Description of the command (1-100 characters).
public string Description { get; }