Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private APIEvents

APIEvents: {} = ...

Type declaration

  • [key: string]: (data: any) => any
      • (data: any): any
      • Parameters

        • data: any

        Returns any

Private OPevents

OPevents: {} = ...

Type declaration

  • [key: number]: (data: any) => any
      • (data: any): any
      • Parameters

        • data: any

        Returns any

Private WSEvents

WSEvents: {}

Type declaration

  • [key: string]: () => any
      • (): any
      • Returns any

Protected response

response: { events: { emit: <T>(t: T, d: DiscordAPIEvents[T]) => void }; op: { emit: <T>(op: T, d: DiscordAPIOP[T]["d"]) => void } } = ...

Type declaration

  • events: { emit: <T>(t: T, d: DiscordAPIEvents[T]) => void }
    • emit: <T>(t: T, d: DiscordAPIEvents[T]) => void
        • <T>(t: T, d: DiscordAPIEvents[T]): void
        • Type parameters

          • T: "READY" | "GUILD_CREATE" | "CHANNEL_CREATE" | "MESSAGE_CREATE"

          Parameters

          • t: T
          • d: DiscordAPIEvents[T]

          Returns void

  • op: { emit: <T>(op: T, d: DiscordAPIOP[T]["d"]) => void }
    • emit: <T>(op: T, d: DiscordAPIOP[T]["d"]) => void
        • <T>(op: T, d: DiscordAPIOP[T]["d"]): void
        • Type parameters

          • T: 2 | 1 | 3 | 4 | 6 | 8 | 9 | 10

          Parameters

          • op: T
          • d: DiscordAPIOP[T]["d"]

          Returns void

Protected Optional ws

ws: WebSocket

Methods

Protected connect

  • connect(url: string): void

Protected event

  • event<T>(e: T, cb: (data: DiscordAPIEvents[T]["d"]) => void): void
  • Type parameters

    • T: "READY" | "GUILD_CREATE" | "CHANNEL_CREATE" | "MESSAGE_CREATE"

    Parameters

    • e: T
    • cb: (data: DiscordAPIEvents[T]["d"]) => void
        • (data: DiscordAPIEvents[T]["d"]): void
        • Parameters

          • data: DiscordAPIEvents[T]["d"]

          Returns void

    Returns void

Protected op

  • op<T>(op: T, cb: (data: DiscordAPIOP[T]["d"]) => void): void
  • Type parameters

    • T: 2 | 1 | 3 | 4 | 6 | 8 | 9 | 10

    Parameters

    • op: T
    • cb: (data: DiscordAPIOP[T]["d"]) => void
        • (data: DiscordAPIOP[T]["d"]): void
        • Parameters

          • data: DiscordAPIOP[T]["d"]

          Returns void

    Returns void

Generated using TypeDoc