Preparing search index...
The search index is not available
mirai-ts
mirai-ts
EventType
NewFriendRequestEvent
Interface NewFriendRequestEvent
添加好友申请
interface
NewFriendRequestEvent
{
eventId
:
number
;
fromId
:
number
;
groupId
:
number
;
message
:
string
;
nick
:
string
;
reply
?:
(
(
msgChain
:
string
|
MessageChain
,
quote
?:
boolean
)
=>
Promise
<
void
>
)
;
respond
:
(
(
operate
:
NewFriendRequestOperationType
,
message
?:
string
)
=>
Promise
<
Api
.
Response
.
NewFriendRequestEvent
>
)
;
type
:
"NewFriendRequestEvent"
;
}
Hierarchy
BaseRequestEvent
NewFriendRequestEvent
Index
Properties
event
Id
from
Id
group
Id
message
nick
reply?
respond
type
Properties
event
Id
event
Id
:
number
事件标识,响应该事件时的标识
from
Id
from
Id
:
number
申请人QQ号
group
Id
group
Id
:
number
申请人如果通过某个群添加好友,该项为该群群号;否则为 0
message
message
:
string
申请消息
nick
nick
:
string
申请人的昵称或群名片
Optional
reply
reply
?:
(
(
msgChain
:
string
|
MessageChain
,
quote
?:
boolean
)
=>
Promise
<
void
>
)
reply 辅助函数
respond
respond
:
(
(
operate
:
NewFriendRequestOperationType
,
message
?:
string
)
=>
Promise
<
Api
.
Response
.
NewFriendRequestEvent
>
)
type
type
:
"NewFriendRequestEvent"
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
event
Id
from
Id
group
Id
message
nick
reply
respond
type
mirai-ts
Loading...
添加好友申请