premium, bugfix to remove setting,
fixed resolver shortcuts
This commit is contained in:
parent
4c9bd8d917
commit
cb05185f1e
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user