mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
fix(Guild): don't patch before instance properties (#5885)
Co-authored-by: BannerBomb <BannerBomb55@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user