From c0a9b08e73ffc2813e4dd6881d408f2c743242fc Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sun, 23 Sep 2018 17:02:35 +0200 Subject: [PATCH] fix(Webhook): APIMessage is not circular, fixes WebhookClients --- src/structures/Webhook.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index f48a51061..5b1328ec2 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -1,6 +1,6 @@ const DataResolver = require('../util/DataResolver'); const Channel = require('./Channel'); -let APIMessage; +let APIMessage = require('./APIMessage'); /** * Represents a webhook. @@ -15,7 +15,6 @@ class Webhook { */ Object.defineProperty(this, 'client', { value: client }); if (data) this._patch(data); - if (!APIMessage) APIMessage = require('./APIMessage'); } _patch(data) {