Interface EventMap<T>

事件地图

Type Parameters

  • T = any

Hierarchy

  • EventMap

Properties

guild.message: ((this: T, event: GuildMessageEvent) => void)

Type declaration

    • (this: T, event: GuildMessageEvent): void
    • 频道相关: 频道消息

      Parameters

      • this: T
      • event: GuildMessageEvent

      Returns void

internal.input: ((this: T, event: {
    end: boolean;
    user_id: number;
}) => void)

Type declaration

    • (this: T, event: {
          end: boolean;
          user_id: number;
      }): void
    • 隐藏事件: 对方正在输入

      Parameters

      • this: T
      • event: {
            end: boolean;
            user_id: number;
        }
        • end: boolean
        • user_id: number

      Returns void

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

Type declaration

    • (this: T, cmd: string, payload: Buffer, seq: number): void
    • 隐藏事件: 监听所有收到的包

      Parameters

      • this: T
      • cmd: string
      • payload: Buffer
      • seq: number

      Returns void

message: ((this: T, event: PrivateMessageEvent | GroupMessageEvent | DiscussMessageEvent) => void)

Type declaration

message.discuss: ((this: T, event: DiscussMessageEvent) => void)

Type declaration

message.group: ((this: T, event: GroupMessageEvent) => void)

Type declaration

message.group.anonymous: ((this: T, event: GroupMessageEvent) => void)

Type declaration

message.group.normal: ((this: T, event: GroupMessageEvent) => void)

Type declaration

message.private: ((this: T, event: PrivateMessageEvent) => void)

Type declaration

message.private.friend: ((this: T, event: PrivateMessageEvent) => void)

Type declaration

message.private.group: ((this: T, event: PrivateMessageEvent) => void)

Type declaration

message.private.other: ((this: T, event: PrivateMessageEvent) => void)

Type declaration

message.private.self: ((this: T, event: PrivateMessageEvent) => void)

Type declaration

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

Type declaration

notice.friend.decrease: ((this: T, event: FriendDecreaseEvent) => void)

Type declaration

notice.friend.increase: ((this: T, event: FriendIncreaseEvent) => void)

Type declaration

notice.friend.poke: ((this: T, event: FriendPokeEvent) => void)

Type declaration

notice.friend.recall: ((this: T, event: FriendRecallEvent) => void)

Type declaration

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

Type declaration

notice.group.admin: ((this: T, event: GroupAdminEvent) => void)

Type declaration

notice.group.ban: ((this: T, event: GroupMuteEvent) => void)

Type declaration

notice.group.decrease: ((this: T, event: MemberDecreaseEvent) => void)

Type declaration

notice.group.increase: ((this: T, event: MemberIncreaseEvent) => void)

Type declaration

notice.group.poke: ((this: T, event: GroupPokeEvent) => void)

Type declaration

notice.group.recall: ((this: T, event: GroupRecallEvent) => void)

Type declaration

notice.group.sign: ((this: T, event: GroupSignEvent) => void)

Type declaration

    • (this: T, event: GroupSignEvent): void
    • 群打卡事件

      Parameters

      • this: T
      • event: GroupSignEvent

      Returns void

notice.group.transfer: ((this: T, event: GroupTransferEvent) => void)

Type declaration

request: ((this: T, event: FriendRequestEvent | GroupRequestEvent | GroupInviteEvent) => void)

Type declaration

request.friend: ((this: T, event: FriendRequestEvent) => void)

Type declaration

request.friend.add: ((this: T, event: FriendRequestEvent) => void)

Type declaration

request.friend.single: ((this: T, event: FriendRequestEvent) => void)

Type declaration

request.group: ((this: T, event: GroupRequestEvent | GroupInviteEvent) => void)

Type declaration

request.group.add: ((this: T, event: GroupRequestEvent) => void)

Type declaration

request.group.invite: ((this: T, event: GroupInviteEvent) => void)

Type declaration

sync.message: ((this: T, event: PrivateMessage) => void)

Type declaration

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

Type declaration

    • (this: T, event: {
          time: number;
          user_id: number;
      } | {
          group_id: number;
          seq: number;
      }): void
    • Parameters

      • this: T
      • event: {
            time: number;
            user_id: number;
        } | {
            group_id: number;
            seq: number;
        }

      Returns void

sync.read.group: ((this: T, event: {
    group_id: number;
    seq: number;
}) => void)

Type declaration

    • (this: T, event: {
          group_id: number;
          seq: number;
      }): void
    • Parameters

      • this: T
      • event: {
            group_id: number;
            seq: number;
        }
        • group_id: number
        • seq: number

      Returns void

sync.read.private: ((this: T, event: {
    time: number;
    user_id: number;
}) => void)

Type declaration

    • (this: T, event: {
          time: number;
          user_id: number;
      }): void
    • 消息已读同步

      Parameters

      • this: T
      • event: {
            time: number;
            user_id: number;
        }
        • time: number
        • user_id: number

      Returns void

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

Type declaration

    • (this: T, event: {
          phone: string;
          url: string;
      }): void
    • 设备锁验证事件

      Parameters

      • this: T
      • event: {
            phone: string;
            url: string;
        }
        • phone: string
        • url: string

      Returns void

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

Type declaration

    • (this: T, event: {
          code: number;
          message: string;
      }): void
    • 登录遇到错误

      Parameters

      • this: T
      • event: {
            code: number;
            message: string;
        }
        • code: number
        • message: string

      Returns void

system.login.qrcode: ((this: T, event: {
    image: Buffer;
}) => void)

Type declaration

    • (this: T, event: {
          image: Buffer;
      }): void
    • 收到二维码

      Parameters

      • this: T
      • event: {
            image: Buffer;
        }
        • image: Buffer

      Returns void

system.login.slider: ((this: T, event: {
    url: string;
}) => void)

Type declaration

    • (this: T, event: {
          url: string;
      }): void
    • 收到滑动验证码

      Parameters

      • this: T
      • event: {
            url: string;
        }
        • url: string

      Returns void

system.offline: ((this: T, event: {
    message: string;
}) => void)

Type declaration

    • (this: T, event: {
          message: string;
      }): void
    • Parameters

      • this: T
      • event: {
            message: string;
        }
        • message: string

      Returns void

system.offline.kickoff: ((this: T, event: {
    message: string;
}) => void)

Type declaration

    • (this: T, event: {
          message: string;
      }): void
    • 下线事件(服务器踢)

      Parameters

      • this: T
      • event: {
            message: string;
        }
        • message: string

      Returns void

system.offline.network: ((this: T, event: {
    message: string;
}) => void)

Type declaration

    • (this: T, event: {
          message: string;
      }): void
    • 下线事件(网络原因,默认自动重连)

      Parameters

      • this: T
      • event: {
            message: string;
        }
        • message: string

      Returns void

system.online: ((this: T, event: undefined) => void)

Type declaration

    • (this: T, event: undefined): void
    • 上线事件

      Parameters

      • this: T
      • event: undefined

      Returns void

Generated using TypeDoc