mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-29 07:00:08 +00:00
17 lines
436 B
JavaScript
17 lines
436 B
JavaScript
"use strict";
|
|
|
|
import ServerChannel from "./ServerChannel";
|
|
import Cache from "../Util/Cache";
|
|
import {reg} from "../Util/ArgumentRegulariser";
|
|
|
|
export default class VoiceChannel extends ServerChannel{
|
|
constructor(data, client, server){
|
|
super(data, client, server);
|
|
this.members = data.members || new Cache();
|
|
}
|
|
|
|
join(callback = function () { }) {
|
|
return this.client.joinVoiceChannel.apply(this.client, [this, callback]);
|
|
}
|
|
}
|