Files
discord.js/lib/Voice/VoiceConnection.js
2015-11-06 21:36:58 +00:00

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;