Table of Contents

Interface IInteractionContext

Namespace
HeyBox
Assembly
HeyBox.Net.Core.dll

表示一次交互的上下文。

public interface IInteractionContext

Properties

Channel

获取本次交互来源的频道。

IMessageChannel Channel { get; }

Property Value

IMessageChannel

Client

获取用于处理本次交互的客户端。

IHeyBoxClient Client { get; }

Property Value

IHeyBoxClient

Interaction

获取底层交互对象。

IHeyBoxInteraction Interaction { get; }

Property Value

IHeyBoxInteraction

MessageId

获取本次交互来源的消息 ID。

ulong MessageId { get; }

Property Value

ulong

Room

获取本次交互来源的群组。

IRoom? Room { get; }

Property Value

IRoom

Remarks

如果交互来源为私聊频道或为上下文命令交互,则为 null

RoomId

获取用于处理本次交互的应用命令信息。

ulong? RoomId { get; }

Property Value

ulong?

User

获取触发本次交互事件的用户。

IUser? User { get; }

Property Value

IUser

UserId

获取触发本次交互的用户 ID。

uint UserId { get; }

Property Value

uint