You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

SpeakingMap

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

Extends

EventEmitter
constructor()
Constructs a new instance of the SpeakingMap class
NameTypeOptionalDescription
StaticReadonly
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
on(event, listener):this
Emitted when a user starts speaking.
NameTypeOptionalDescription
event'start'NoNone
listener(userId: string) => voidNoNone