Danger

This documentation is for the discord.js 8.2 branch called discordv8 maintained by macdja38. You’re probably looking for documentation on version 9 or higher, which is available on the other docs site.

VoiceChannel

extends ServerChannel

A voice channel of a server. Currently, the voice channel class has no differences to the ServerChannel class.


Attributes

members

A Cache of Users that are connected to the voice channel

userLimit

The maximum amount of users that can connect to the voice channel. If it’s 0, there is no limit

bitrate

The bitrate of the voice channel (in kb/s).

Functions

setUserLimit(limit, callback)

Shortcut of client.setChannelUserLimit(channel, limit, callback)

setBitrate(kbitrate, callback)

Shortcut of client.setChannelBitrate(channel, kbitrate, callback)

join(callback)

Shortcut of client.joinVoiceChannel(channel, callback)