mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Fixed accidental prototype duplicate
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user