mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +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;
|
||||
|
||||
//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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue