消息拦截信息

1.0.0

Constructors

Properties

conversationType: ConversationType = ConversationType.Private

会话类型

targetId: string = ""

会话 ID

messageUid: string = ""

被拦截的消息 UID

extra: string = ""

附加信息

blockType: MessageBlockType = MessageBlockType.None

拦截类型

sourceType: MessageBlockSourceType = MessageBlockSourceType.Default

消息被拦截的触发来源

sourceContent: string = ""

源内容 Json 字符串,sourceType 为 1、2 时返回

sourceType 为 0,sourceContent 内容为 nil

sourceType 为 1,sourceContent 是扩展内容,示例 {"mid":"xxx-xxx-xxx-xxx","put":{"key":"敏感词"}}

sourceType 为 2,sourceContent 是消息修改后内容,示例 {"content":"敏感词"}