Table of Contents

Class SocketSlashCommandDataOption

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

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

public class SocketSlashCommandDataOption : ISlashCommandInteractionDataOption
Inheritance
SocketSlashCommandDataOption
Implements
Inherited Members

Properties

Name

获取此选项的名称。

public string Name { get; }

Property Value

string

RawValue

获取此选项的原始值。

public string RawValue { get; }

Property Value

string

Type

获取此选项的类型。

public SlashCommandOptionType Type { get; }

Property Value

SlashCommandOptionType

Value

获取此选项的值。

note

此对象类型可能是 SlashCommandOptionType 中的任意一个选项类型。

public object? Value { get; }

Property Value

object