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