mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(Webhook): APIMessage is not circular, fixes WebhookClients
This commit is contained in:
parent
3f44320bbe
commit
c0a9b08e73
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue