diff --git a/structure/extensions/Guild.js b/structure/extensions/Guild.js index 0573475..490c2e1 100644 --- a/structure/extensions/Guild.js +++ b/structure/extensions/Guild.js @@ -11,6 +11,7 @@ const Guild = Structures.extend('Guild', (Guild) => { this._settings = null; //internal cache of current guild's settings; should ALWAYS stay the same as database. this._permissions = null; //internal cache, should always match database. + this.premium = 0; } @@ -78,7 +79,7 @@ const Guild = Structures.extend('Guild', (Guild) => { async _removeSettings(value) { //Remove property if(this.client.defaultConfig[value]) { - await this._updateSettings(this.client.defaultConfig[value]); + await this._updateSettings({ [value]: this.client.defaultConfig[value] }); return undefined; } try { @@ -127,7 +128,7 @@ const Guild = Structures.extend('Guild', (Guild) => { async resolveMember(member, strict) { - return await this.client.resolver.resolveMembers(member, this, strict); + return this.client.resolver.resolveMembers(member, this, strict); } @@ -145,13 +146,13 @@ const Guild = Structures.extend('Guild', (Guild) => { async resolveRoles(roles, strict = false) { - return await this.client.resolver.resolveRoles(roles, this, strict); + return this.client.resolver.resolveRoles(roles, this, strict); } async resolveRole(role, strict) { - return await this.client.resolver.resolveRole(role, this, strict); + return this.client.resolver.resolveRole(role, this, strict); }