class SSRCMap

extends

EventEmitter
export declare class SSRCMap extends EventEmitter

Maps audio SSRCs to data of users in voice connections.

delete(
target: number | string
) : VoiceUserData | undefined

Deletes the stored voice data about a user.

Returns: The data that was deleted, if any

get(
target: number | string
) : VoiceUserData | undefined

Gets the stored voice data of a user.

update() : void

Updates the map with new user data

on(
event: 'create'
listener: (newData: VoiceUserData) => void
) : this