Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventMap<T>

事件地图

Type parameters

  • T = any

Hierarchy

  • EventMap

Index

Methods

guild.message

  • guild.message(event: GuildMessageEvent): void
  • 频道相关: 频道消息

    Parameters

    • event: GuildMessageEvent

    Returns void

internal.input

  • internal.input(event: { end: boolean; user_id: number }): void
  • 隐藏事件: 对方正在输入

    Parameters

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

    Returns void

internal.sso

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

    Parameters

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

    Returns void

message

message.discuss

message.group

message.group.anonymous

message.group.normal

message.private

message.private.friend

message.private.group

message.private.other

message.private.self

notice

notice.friend

notice.friend.decrease

notice.friend.increase

notice.friend.poke

notice.friend.recall

notice.group

notice.group.admin

notice.group.ban

notice.group.decrease

notice.group.increase

notice.group.poke

notice.group.recall

notice.group.transfer

request

request.friend

request.friend.add

request.friend.single

request.group

request.group.add

request.group.invite

sync.message

sync.read

  • sync.read(event: { time: number; user_id: number } | { group_id: number; seq: number }): void
  • Parameters

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

    Returns void

sync.read.group

  • sync.read.group(event: { group_id: number; seq: number }): void
  • Parameters

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

    Returns void

sync.read.private

  • sync.read.private(event: { time: number; user_id: number }): void
  • 消息已读同步

    Parameters

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

    Returns void

system.login.device

  • system.login.device(event: { phone: string; url: string }): void
  • 设备锁验证事件

    Parameters

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

    Returns void

system.login.error

  • system.login.error(event: { code: number; message: string }): void
  • 登录遇到错误

    Parameters

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

    Returns void

system.login.qrcode

  • system.login.qrcode(event: { image: Buffer }): void
  • 收到二维码

    Parameters

    • event: { image: Buffer }
      • image: Buffer

    Returns void

system.login.slider

  • system.login.slider(event: { url: string }): void
  • 收到滑动验证码

    Parameters

    • event: { url: string }
      • url: string

    Returns void

system.offline

  • system.offline(event: { message: string }): void
  • Parameters

    • event: { message: string }
      • message: string

    Returns void

system.offline.kickoff

  • system.offline.kickoff(event: { message: string }): void
  • 下线事件(服务器踢)

    Parameters

    • event: { message: string }
      • message: string

    Returns void

system.offline.network

  • system.offline.network(event: { message: string }): void
  • 下线事件(网络原因,默认自动重连)

    Parameters

    • event: { message: string }
      • message: string

    Returns void

system.online

  • system.online(event: undefined): void

Generated using TypeDoc