mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-02 00:50:09 +00:00
21 lines
479 B
JavaScript
21 lines
479 B
JavaScript
const ServerChannel = require('./ServerChannel');
|
|
const VoiceChannelDataStore = require('./datastore/VoiceChannelDataStore');
|
|
|
|
/**
|
|
* Represents a Server Voice Channel on Discord.
|
|
*/
|
|
class VoiceChannel extends ServerChannel {
|
|
constructor(guild, data) {
|
|
super(guild, data);
|
|
this.store = new VoiceChannelDataStore();
|
|
}
|
|
|
|
setup(data) {
|
|
super.setup(data);
|
|
this.bitrate = data.bitrate;
|
|
this.userLimit = data.user_limit;
|
|
}
|
|
}
|
|
|
|
module.exports = VoiceChannel;
|