Table of Contents

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 string
Name of the command (1-32 characters). Must be lowercase.
description string
Description of the command (1-100 characters).

Properties

Description

Description of the command (1-100 characters).

public string Description { get; }

Property Value

string