| Modifier and Type | Interface and Description |
|---|---|
interface |
GroupMessageEvent |
| Modifier and Type | Class and Description |
|---|---|
class |
InterAction
属性 类型 说明 id string 平台方事件 ID,可以用于被动消息发送 type int 消息按钮: 11,单聊快捷菜单:12 scene string 事件发生的场景:c2c、group、guild chat_type int 0 频道场景,1 群聊场景,2 单聊场景 timestamp string 触发时间 RFC 3339 格式 guild_id string 频道的 openid ,仅在频道场景提供该字段 channel_id string 文字子频道的 openid,仅在频道场景提供该字段 user_openid string 单聊单聊按钮触发x,的用户 openid,仅在单聊场景提供该字段 group_openid string 群的 openid,仅在群聊场景提供该字段 group_member_openid string 按钮触发用户,群聊的群成员 openid,仅在群聊场景提供该字段 data.resoloved.button_data string 操作按钮的 data 字段值(在发送消息按钮时设置) data.resoloved.button_id string 操作按钮的 id 字段值(在发送消息按钮时设置) data.resoloved.user_id string 操作的用户 userid,仅频道场景提供该字段 data.resoloved.feature_id string 操作按钮的 id 字段值,仅自定义菜单提供该字段(在管理端设置) data.resoloved.message_id string 操作的消息id,目前仅频道场景提供该字段 version int 默认 1 application_id string 机器人的 appid
|
| Modifier and Type | Class and Description |
|---|---|
class |
DirectMessage
字段名 类型 描述 id string 消息 id channel_id string 子频道 id guild_id string 频道 id content string 消息内容 timestamp ISO8601 timestamp 消息创建时间 edited_timestamp ISO8601 timestamp 消息编辑时间 mention_everyone bool 是否是@全员消息 author User 对象 消息创建者 attachments MessageAttachment 对象数组 附件 embeds MessageEmbed 对象数组 embed mentions User 对象数组 消息中@的人 member Member 对象 消息创建者的member信息 ark MessageArk ark消息对象 ark消息 seq int 用于消息间的排序,seq 在同一子频道中按从先到后的顺序递增,不同的子频道之间消息无法排序。
|
class |
RawMessage
字段名 类型 描述 id string 消息 id channel_id string 子频道 id guild_id string 频道 id content string 消息内容 timestamp ISO8601 timestamp 消息创建时间 edited_timestamp ISO8601 timestamp 消息编辑时间 mention_everyone bool 是否是@全员消息 author User 对象 消息创建者 attachments MessageAttachment 对象数组 附件 embeds MessageEmbed 对象数组 embed mentions User 对象数组 消息中@的人 member Member 对象 消息创建者的member信息 ark MessageArk ark消息对象 ark消息 seq int 用于消息间的排序,seq 在同一子频道中按从先到后的顺序递增,不同的子频道之间消息无法排序。
|
| Modifier and Type | Class and Description |
|---|---|
class |
Friend |
class |
Group |
class |
Member |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseFriendMessageEvent |
class |
BaseGroupMessageEvent |
Copyright © 2025. All rights reserved.