mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +00:00
Fixed accidental prototype duplicate
This commit is contained in:
parent
faa744b1e3
commit
4c30890626
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ import VoiceConnection from "../Voice/VoiceConnection";
|
||||||
var zlib;
|
var zlib;
|
||||||
|
|
||||||
//todo: move this somewhere else
|
//todo: move this somewhere else
|
||||||
var originalEnd = request.Request.prototype.prototype.end;
|
var originalEnd = request.Request.prototype.end;
|
||||||
request.Request.prototype.prototype.end = function(callback) {
|
request.Request.prototype.end = function(callback) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
originalEnd.call(this, (err, response) => {
|
originalEnd.call(this, (err, response) => {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue