Table of Contents

Class SocketSlashCommandData

Namespace
HeyBox.WebSocket
Assembly
HeyBox.Net.WebSocket.dll

表示一个通过网关接收的斜线命令的数据。

public class SocketSlashCommandData : SocketEntity<ulong>, IEntity<ulong>, ISlashCommandInteractionData, IHeyBoxInteractionData
Inheritance
SocketSlashCommandData
Implements
Inherited Members

Properties

Name

获取命令的名称。

public string Name { get; }

Property Value

string

Options

获取用户提供的选项。

public IReadOnlyCollection<SocketSlashCommandDataOption> Options { get; }

Property Value

IReadOnlyCollection<SocketSlashCommandDataOption>