Table of Contents

Class SocketReaction

Namespace
Kook.WebSocket
Assembly
Kook.Net.WebSocket.dll

表示一个基于网关的回应。

public class SocketReaction : IReaction
Inheritance
SocketReaction
Implements
Inherited Members

Properties

Channel

获取此回应所在的消息频道。

public ISocketMessageChannel? Channel { get; }

Property Value

ISocketMessageChannel

Remarks

如果要获取的频道实体不存在于缓存中,则此属性将返回 null

Emote

获取此回应所使用的表情符号。

public IEmote Emote { get; }

Property Value

IEmote

Message

获取此回应所对应的消息。

public IMessage? Message { get; }

Property Value

IMessage

Remarks

如果要获取的消息实体不存在于缓存中,则此属性将返回 null

MessageId

获取此回应所对应的消息的 ID。

public Guid MessageId { get; }

Property Value

Guid

User

获取添加此回应的用户。

public IUser? User { get; }

Property Value

IUser

Remarks

如果要获取的用户实体不存在于缓存中,则此属性将返回 null

UserId

获取添加此回应的用户的 ID。

public ulong UserId { get; }

Property Value

ulong

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.