# 私信消息事件
# DIRECT_MESSAGE_CREATE (intents DIRECT_MESSAGE)
# 发送时机
- 用户通过私信发消息给机器人时
- 由于私信场景无法设置沙箱频道,目前私信事件不支持沙箱环境,开发者可以通过用户 id 白名单的方式来调试私信
# 内容
内容为 Message 对象
# 示例
{
"author": {
"avatar": "http://thirdqq.qlogo.cn/0",
"bot": false,
"id": "1234",
"username": "abc"
},
"channel_id": "100010",
"content": "ndnnd",
"guild_id": "18700000000001",
"id": "0812345677890abcdef",
"member": {
"joined_at": "2021-04-12T16:34:42+08:00",
"roles": [
"1"
]
},
"timestamp": "2021-05-20T15:14:58+08:00"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19