mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
20 lines
597 B
JavaScript
20 lines
597 B
JavaScript
"use strict";
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
var WebSocket = require("ws");
|
|
var dgram = require("dgram");
|
|
|
|
var VoiceConnection = function VoiceConnection(channel, client, session, token, server, endpoint) {
|
|
_classCallCheck(this, VoiceConnection);
|
|
|
|
this.voiceChannel = channel;
|
|
this.client = client;
|
|
this.session = session;
|
|
this.token = token;
|
|
this.server = server;
|
|
this.endpoint = endpoint;
|
|
console.log("I was instantiated!");
|
|
};
|
|
|
|
module.exports = VoiceConnection; |