Interface MemberJoinRequestEvent

用户入群申请(Bot需要有管理员权限)

interface MemberJoinRequestEvent {
    eventId: number;
    fromId: number;
    groupId: number;
    groupName: string;
    message: string;
    nick: string;
    reply?: ((msgChain: string | MessageChain, quote?: boolean) => Promise<void>);
    respond: ((operate: MemberJoinRequestOperationType, message?: string) => Promise<Api.Response.MemberJoinRequestEvent>);
    type: "MemberJoinRequestEvent";
}

Hierarchy

  • BaseRequestEvent
    • MemberJoinRequestEvent

Properties

eventId: number

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

fromId: number

申请人 QQ号

groupId: number

申请人申请入群的群号

groupName: string

申请人申请入群的群名称

message: string

申请消息

nick: string

申请人的昵称或群名片

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

reply 辅助函数

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