From ec5da9e6ad8b7a654052d7e48bbe30da1b55fc60 Mon Sep 17 00:00:00 2001 From: bdistin Date: Sun, 21 May 2017 14:12:49 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20trying=20to=20use=20this.client,=20when?= =?UTF-8?q?=20this=20IS=20client,=20and=20this.client=20i=E2=80=A6=20(#151?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/Client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/Client.js b/src/client/Client.js index c896d00ee..a57a2f04f 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -351,7 +351,7 @@ class Client extends EventEmitter { * @returns {Promise} */ fetchWebhook(id, token) { - return this.api.webhooks(id, token).get().then(data => new Webhook(this.client, data)); + return this.api.webhooks(id, token).get().then(data => new Webhook(this, data)); } /** @@ -409,7 +409,7 @@ class Client extends EventEmitter { */ fetchApplication(id = '@me') { return this.rest.api.oauth2.applications(id).get() - .then(app => new OAuth2Application(this.client, app)); + .then(app => new OAuth2Application(this, app)); } /**