Class SummaryAttribute
Customize the name and description of an Slash Application Command parameter.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class SummaryAttribute : Attribute
Constructors
| Improve this Doc View SourceSummaryAttribute(String, String)
Modify the default name and description values of a Slash Command parameter.
Declaration
public SummaryAttribute(string name = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the parameter. |
String | description | Description of the parameter. |
Properties
| Improve this Doc View SourceDescription
Gets the description of the parameter.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
Name
Gets the name of the parameter.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |