From 3400ff63be7f263edf9febd683ee6c8a0e58e565 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 31 Aug 2022 23:26:09 +0300 Subject: [PATCH] blergh --- src/structure/client/wrappers/GuildWrapper.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index 4fe6c38..95ad96e 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -159,7 +159,11 @@ class GuildWrapper { const { defaultConfig } = this; if (!settings && !_imported?.settings && !_imported?.modlogs) { - settings = await this._attemptDataImport(); + if (this._importPromise) settings = await this._importPromise; + else { + this._importPromise = this._attemptDataImport(); + settings = await this._importPromise; + } } if (settings) {