From cb05185f1e7810f6b0fee391acd015d510b6c692 Mon Sep 17 00:00:00 2001 From: Navy Date: Sun, 24 May 2020 01:12:37 +0300 Subject: [PATCH] premium, bugfix to remove setting, fixed resolver shortcuts --- structure/extensions/Guild.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); }