Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface VoiceEvents<T>

Type parameters

  • T

Hierarchy

  • VoiceEvents

Callable

  • VoiceEvents(event: "ready" | "connect" | "end" | "start", listener: () => void): T
  • VoiceEvents(event: "warn" | "debug", listener: (message: string) => void): T
  • VoiceEvents(event: "disconnect", listener: (err?: Error) => void): T
  • VoiceEvents(event: "error", listener: (err: Error) => void): T
  • VoiceEvents(event: "pong", listener: (latency: number) => void): T
  • VoiceEvents(event: "speakingStart" | "speakingStop" | "userDisconnect", listener: (userID: string) => void): T
  • VoiceEvents(event: "unknown", listener: (packet: unknown) => void): T
  • Parameters

    • event: "ready" | "connect" | "end" | "start"
    • listener: () => void
        • (): void
        • Returns void

    Returns T

  • Parameters

    • event: "warn" | "debug"
    • listener: (message: string) => void
        • (message: string): void
        • Parameters

          • message: string

          Returns void

    Returns T

  • Parameters

    • event: "disconnect"
    • listener: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns T

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns T

  • Parameters

    • event: "pong"
    • listener: (latency: number) => void
        • (latency: number): void
        • Parameters

          • latency: number

          Returns void

    Returns T

  • Parameters

    • event: "speakingStart" | "speakingStop" | "userDisconnect"
    • listener: (userID: string) => void
        • (userID: string): void
        • Parameters

          • userID: string

          Returns void

    Returns T

  • Parameters

    • event: "unknown"
    • listener: (packet: unknown) => void
        • (packet: unknown): void
        • Parameters

          • packet: unknown

          Returns void

    Returns T

Generated using TypeDoc