Table of Contents

Class SlashCommandChoiceAttribute

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

Specifies metadata for a choice of a slash command parameter.

[AttributeUsage(AttributeTargets.Field)]
public class SlashCommandChoiceAttribute : Attribute
Inheritance
SlashCommandChoiceAttribute
Inherited Members

Constructors

SlashCommandChoiceAttribute()

public SlashCommandChoiceAttribute()

Properties

Name

Name of the choice (1-100 characters).

public string? Name { get; init; }

Property Value

string