Interface FriendRequestEvent

好友申请

interface FriendRequestEvent {
    age: number;
    comment: string;
    flag: string;
    nickname: string;
    post_type: "request";
    request_type: "friend";
    seq: number;
    sex: Gender;
    source: string;
    sub_type: "add" | "single";
    time: number;
    user_id: number;
    approve(yes?: boolean): Promise<boolean>;
}

Hierarchy (view full)

Properties

age: number

年龄

comment: string

请求消息

flag: string

cqhttp方法用

nickname: string

昵称

post_type
request_type
seq: number
sex: Gender

性别

source: string

申请来源

sub_type: "add" | "single"

为single时对方已将你加为单向好友

time: number
user_id: number

账号

Methods