Interface ClientEvents

The various events a client can emit.

Hierarchy

  • ClientEvents

Properties

channelCreate: ((channel: Channel) => any)

Type declaration

channelDelete: ((id: string, channel?: Channel) => any)

Type declaration

    • (id: string, channel?: Channel): any
    • Parameters

      • id: string
      • Optional channel: Channel

      Returns any

channelStartTyping: ((user: User, channel: Channel) => any)

Type declaration

channelStopTyping: ((user: User, channel: Channel) => any)

Type declaration

channelUpdate: ((channel: Channel) => any)

Type declaration

connected: (() => any)

Type declaration

    • (): any
    • Returns any

connecting: (() => any)

Type declaration

    • (): any
    • Returns any

destroyed: (() => any)

Type declaration

    • (): any
    • Returns any

disconnected: (() => any)

Type declaration

    • (): any
    • Returns any

emojiCreate: ((emoji: Emoji) => void)

Type declaration

    • (emoji: Emoji): void
    • Parameters

      Returns void

emojiDelete: ((id: string, emoji?: Emoji) => void)

Type declaration

    • (id: string, emoji?: Emoji): void
    • Parameters

      • id: string
      • Optional emoji: Emoji

      Returns void

groupExited: ((group: GroupDMChannel) => any)

Type declaration

groupMemberJoin: ((group: GroupDMChannel, user: User) => any)

Type declaration

groupMemberLeave: ((group: GroupDMChannel, user: User) => any)

Type declaration

message: ((message: BaseMessage) => any)

Type declaration

messageDelete: ((id: string, message?: BaseMessage) => any)

Type declaration

messageUpdate: ((message: BaseMessage) => any)

Type declaration

packet: ((packet: ClientboundNotification) => any)

Type declaration

ready: (() => any)

Type declaration

    • (): any
    • Returns any

serverCreate: ((server: Server) => any)

Type declaration

    • (server: Server): any
    • Parameters

      Returns any

serverExited: ((id: string, server?: Server) => any)

Type declaration

    • (id: string, server?: Server): any
    • Parameters

      • id: string
      • Optional server: Server

      Returns any

serverMemberJoin: ((member: Member) => any)

Type declaration

    • (member: Member): any
    • Parameters

      Returns any

serverMemberLeave: ((server: Server, user: User) => any)

Type declaration

serverMemberUpdate: ((member: Member) => any)

Type declaration

    • (member: Member): any
    • Parameters

      Returns any

serverRoleCreate: ((role: Role) => any)

Type declaration

    • (role: Role): any
    • Parameters

      Returns any

serverRoleDelete: ((role: Role) => any)

Type declaration

    • (role: Role): any
    • Parameters

      Returns any

serverRoleUpdate: ((role: Role) => any)

Type declaration

    • (role: Role): any
    • Parameters

      Returns any

serverUpdate: ((server: Server) => any)

Type declaration

    • (server: Server): any
    • Parameters

      Returns any

userRelationshipUpdate: ((user: User) => any)

Type declaration

    • (user: User): any
    • Parameters

      Returns any

userUpdate: ((user: User) => any)

Type declaration

    • (user: User): any
    • Parameters

      Returns any