Table of Contents

Class SummaryAttribute

Namespace
HeyBox.Interactions
Assembly
HeyBox.Net.Interactions.dll

自定义斜线命令参数的名称和描述。

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class SummaryAttribute : Attribute
Inheritance
SummaryAttribute
Inherited Members

Constructors

SummaryAttribute(string?, string?)

修改斜线命令参数的默认名称和描述。

public SummaryAttribute(string? name = null, string? description = null)

Parameters

name string

参数名称。

description string

参数描述。

Properties

Description

获取参数描述。

public string? Description { get; }

Property Value

string

Name

获取参数名称。

public string? Name { get; }

Property Value

string