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

Properties

eventId: number

事件标识,响应该事件时的标识

fromId: number

申请人QQ号

groupId: number

申请人如果通过某个群添加好友,该项为该群群号;否则为 0

message: string

申请消息

nick: string

申请人的昵称或群名片

reply?: ((msgChain: string | MessageChain, quote?: boolean) => Promise<void>)

reply 辅助函数

respond: ((operate: NewFriendRequestOperationType, message?: string) => Promise<Api.Response.NewFriendRequestEvent>)
type: "NewFriendRequestEvent"