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