From 4c30890626792975f30e4ca8e956fffa3db5ce60 Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Sat, 28 Nov 2015 18:56:13 +0100 Subject: [PATCH] Fixed accidental prototype duplicate --- src/Client/InternalClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 5a39a0b72..4c1597be1 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -24,8 +24,8 @@ import VoiceConnection from "../Voice/VoiceConnection"; var zlib; //todo: move this somewhere else -var originalEnd = request.Request.prototype.prototype.end; -request.Request.prototype.prototype.end = function(callback) { +var originalEnd = request.Request.prototype.end; +request.Request.prototype.end = function(callback) { return new Promise((resolve, reject) => { originalEnd.call(this, (err, response) => { if (callback) {