fix(Guild): don't patch before instance properties (#5885)

Co-authored-by: BannerBomb <BannerBomb55@gmail.com>
This commit is contained in:
ckohen
2021-06-20 07:47:30 -07:00
committed by GitHub
parent 1f8f3ab0f8
commit 174b7a7f9c
3 changed files with 5 additions and 3 deletions

View File

@@ -8,9 +8,9 @@ const { VerificationLevels, NSFWLevels } = require('../util/Constants');
* @abstract
*/
class AnonymousGuild extends BaseGuild {
constructor(client, data) {
constructor(client, data, immediatePatch = true) {
super(client, data);
this._patch(data);
if (immediatePatch) this._patch(data);
}
_patch(data) {