Search...

SpeakingMap

Tracks the speaking states of users in a voice channel.
declare class SpeakingMap extends EventEmitter 
declare class SpeakingMap extends EventEmitter 

Extends

EventEmitter
Readonly

DELAY

:

The delay after a packet is received from a user until they're marked as not speaking anymore.
Readonly

users

:

Map<string, number>

The currently speaking users, mapped to the milliseconds since UNIX epoch at which they started speaking.

onPacket(userId)

:

void

NameTypeOptionalDescription
userIdstringNoNone