fetch settings
This commit is contained in:
parent
3289923571
commit
ac6a03fa93
@ -12,6 +12,14 @@ const Guild = Structures.extend('Guild', (Guild) => {
|
||||
|
||||
}
|
||||
|
||||
async settings() {
|
||||
|
||||
if (!this._settings) this._settings = this.client.transactionHandler._send({ provider: 'mongodb', request: { type: 'findOne', query: { guild: this.id } } });
|
||||
if (this._settings instanceof Promise) this._settings = await this._settings;
|
||||
return this._settings;
|
||||
|
||||
}
|
||||
|
||||
async resolveMembers(members, strict = false) {
|
||||
|
||||
return await this.client.resolver.resolveMembers(members, this, strict);
|
||||
|
Loading…
Reference in New Issue
Block a user