mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Fixed smallish bugs
This commit is contained in:
@@ -2,8 +2,19 @@
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var VoiceConnection = function VoiceConnection() {
|
||||
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;
|
||||
Reference in New Issue
Block a user