Player::voiceListeners
This function is used to return all active voice listeners, which got added by player.enableVoiceTo(target).
Syntax
player.voiceListeners.forEach(Function callingFunction)
Required Arguments
- callingFunction: Function, what will be called.
Example #1
This example will remove all active listeners from the player list.
Server-Side
if(!player.voiceListeners.length) return false;
player.voiceListeners.forEach((listener) => {
player.disableVoiceTo(listener);
});