Interface IInteractionContext
- Namespace
- HeyBox
- Assembly
- HeyBox.Net.Core.dll
表示一次交互的上下文。
public interface IInteractionContext
Properties
Channel
获取本次交互来源的频道。
IMessageChannel Channel { get; }
Property Value
Client
获取用于处理本次交互的客户端。
IHeyBoxClient Client { get; }
Property Value
Interaction
获取底层交互对象。
IHeyBoxInteraction Interaction { get; }
Property Value
MessageId
获取本次交互来源的消息 ID。
ulong MessageId { get; }
Property Value
Room
获取本次交互来源的群组。
IRoom? Room { get; }
Property Value
Remarks
如果交互来源为私聊频道或为上下文命令交互,则为 null。
RoomId
获取用于处理本次交互的应用命令信息。
ulong? RoomId { get; }
Property Value
User
获取触发本次交互事件的用户。
IUser? User { get; }
Property Value
UserId
获取触发本次交互的用户 ID。
uint UserId { get; }