philia
    Preparing search index...

    事件字典

    interface EventMap {
        "internal.input": (event: { end: boolean; user_id: string }) => void;
        "internal.sso": (cmd: string, payload: Buffer, seq: number) => void;
        "message.group": (event: GroupMessageEvent) => void;
        "message.group.anonymous": (event: GroupMessageEvent) => void;
        "message.group.normal": (event: GroupMessageEvent) => void;
        "message.private": (event: PrivateMessageEvent) => void;
        "message.private.friend": (event: PrivateMessageEvent) => void;
        "message.private.group": (event: PrivateMessageEvent) => void;
        "message.private.other": (event: PrivateMessageEvent) => void;
        "message.private.self": (event: PrivateMessageEvent) => void;
        "notice.friend": (
            event:
                | FriendIncreaseEvent
                | FriendDecreaseEvent
                | FriendRecallEvent
                | FriendPokeEvent,
        ) => void;
        "notice.friend.decrease": (event: FriendDecreaseEvent) => void;
        "notice.friend.increase": (event: FriendIncreaseEvent) => void;
        "notice.friend.poke": (event: FriendPokeEvent) => void;
        "notice.friend.recall": (event: FriendRecallEvent) => void;
        "notice.group": (
            event:
                | MemberIncreaseEvent
                | GroupSignEvent
                | MemberDecreaseEvent
                | GroupRecallEvent
                | GroupAdminEvent
                | GroupMuteEvent
                | GroupTransferEvent
                | GroupPokeEvent,
        ) => void;
        "notice.group.admin": (event: GroupAdminEvent) => void;
        "notice.group.ban": (event: GroupMuteEvent) => void;
        "notice.group.decrease": (event: MemberDecreaseEvent) => void;
        "notice.group.increase": (event: MemberIncreaseEvent) => void;
        "notice.group.poke": (event: GroupPokeEvent) => void;
        "notice.group.recall": (event: GroupRecallEvent) => void;
        "notice.group.sign": (event: GroupSignEvent) => void;
        "notice.group.transfer": (event: GroupTransferEvent) => void;
        "request.friend": (event: FriendRequestEvent) => void;
        "request.friend.add": (event: FriendRequestEvent) => void;
        "request.friend.invite": (event: GroupInviteEvent) => void;
        "request.friend.single": (event: FriendRequestEvent) => void;
        "request.group": (event: GroupRequestEvent | GroupInviteEvent) => void;
        "request.group.add": (event: GroupRequestEvent) => void;
        "request.group.invite": (event: GroupInviteEvent) => void;
        send: (messageRet: MessageRet) => void;
        "sync.message": (event: PrivateMessage) => void;
        "sync.read": (
            event:
                | { time: number; user_id: string }
                | { group_id: string; seq: number },
        ) => void;
        "sync.read.group": (event: { group_id: string; seq: number }) => void;
        "sync.read.private": (event: { time: number; user_id: string }) => void;
        "system.login.device": (event: { phone: string; url: string }) => void;
        "system.login.error": (event: { code: number; message: string }) => void;
        "system.login.qrcode": (event: { image: Buffer }) => void;
        "system.login.slider": (event: { url: string }) => void;
        "system.offline": (event: { message: string }) => void;
        "system.offline.kickoff": (event: { message: string }) => void;
        "system.offline.network": (event: { message: string }) => void;
        "system.online": (event: undefined) => void;
        message(event: GroupMessageEvent | PrivateMessageEvent): void;
        notice(
            ...event:
                | [
                    event: | FriendIncreaseEvent
                    | FriendDecreaseEvent
                    | FriendRecallEvent
                    | FriendPokeEvent,
                ]
                | [
                    event: | MemberIncreaseEvent
                    | GroupSignEvent
                    | MemberDecreaseEvent
                    | GroupRecallEvent
                    | GroupAdminEvent
                    | GroupMuteEvent
                    | GroupTransferEvent
                    | GroupPokeEvent,
                ],
        ): void;
        request(
            ...event:
                | [event: FriendRequestEvent]
                | [event: GroupRequestEvent | GroupInviteEvent],
        ): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    "internal.input": (event: { end: boolean; user_id: string }) => void

    隐藏事件: 对方正在输入

    "internal.sso": (cmd: string, payload: Buffer, seq: number) => void

    隐藏事件: 监听所有收到的包

    "message.group": (event: GroupMessageEvent) => void
    "message.group.anonymous": (event: GroupMessageEvent) => void

    Type declaration

    "message.group.normal": (event: GroupMessageEvent) => void

    Type declaration

    "message.private": (event: PrivateMessageEvent) => void
    "message.private.friend": (event: PrivateMessageEvent) => void

    Type declaration

    "message.private.group": (event: PrivateMessageEvent) => void

    Type declaration

    "message.private.other": (event: PrivateMessageEvent) => void

    Type declaration

    "message.private.self": (event: PrivateMessageEvent) => void

    Type declaration

    "notice.friend": (
        event:
            | FriendIncreaseEvent
            | FriendDecreaseEvent
            | FriendRecallEvent
            | FriendPokeEvent,
    ) => void
    "notice.friend.decrease": (event: FriendDecreaseEvent) => void

    Type declaration

    "notice.friend.increase": (event: FriendIncreaseEvent) => void

    Type declaration

    "notice.friend.poke": (event: FriendPokeEvent) => void

    Type declaration

    "notice.friend.recall": (event: FriendRecallEvent) => void

    Type declaration

    "notice.group": (
        event:
            | MemberIncreaseEvent
            | GroupSignEvent
            | MemberDecreaseEvent
            | GroupRecallEvent
            | GroupAdminEvent
            | GroupMuteEvent
            | GroupTransferEvent
            | GroupPokeEvent,
    ) => void
    "notice.group.admin": (event: GroupAdminEvent) => void

    Type declaration

    "notice.group.ban": (event: GroupMuteEvent) => void

    Type declaration

    "notice.group.decrease": (event: MemberDecreaseEvent) => void

    Type declaration

    "notice.group.increase": (event: MemberIncreaseEvent) => void

    Type declaration

    "notice.group.poke": (event: GroupPokeEvent) => void

    Type declaration

    "notice.group.recall": (event: GroupRecallEvent) => void

    Type declaration

    "notice.group.sign": (event: GroupSignEvent) => void

    Type declaration

    "notice.group.transfer": (event: GroupTransferEvent) => void

    Type declaration

    "request.friend": (event: FriendRequestEvent) => void
    "request.friend.add": (event: FriendRequestEvent) => void

    Type declaration

    "request.friend.invite": (event: GroupInviteEvent) => void

    Type declaration

    "request.friend.single": (event: FriendRequestEvent) => void

    Type declaration

    "request.group": (event: GroupRequestEvent | GroupInviteEvent) => void
    "request.group.add": (event: GroupRequestEvent) => void

    Type declaration

    "request.group.invite": (event: GroupInviteEvent) => void

    Type declaration

    send: (messageRet: MessageRet) => void

    未知事件

    "sync.message": (event: PrivateMessage) => void

    私聊同步

    "sync.read": (
        event:
            | { time: number; user_id: string }
            | { group_id: string; seq: number },
    ) => void

    消息已读同步

    "sync.read.group": (event: { group_id: string; seq: number }) => void

    群聊消息已读同步

    "sync.read.private": (event: { time: number; user_id: string }) => void

    私聊消息已读同步

    "system.login.device": (event: { phone: string; url: string }) => void

    设备锁验证事件

    "system.login.error": (event: { code: number; message: string }) => void

    登录遇到错误

    "system.login.qrcode": (event: { image: Buffer }) => void

    收到二维码

    "system.login.slider": (event: { url: string }) => void

    收到滑动验证码

    "system.offline": (event: { message: string }) => void

    下线事件

    "system.offline.kickoff": (event: { message: string }) => void

    下线事件(服务器踢)

    "system.offline.network": (event: { message: string }) => void

    下线事件(网络原因,默认自动重连)

    "system.online": (event: undefined) => void

    上线事件

    Methods