mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 17:37:25 +00:00
Hotfix fundall
This commit is contained in:
parent
04cac532ac
commit
63f864f48a
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module.exports = class FundAll extends Command {
|
|||
await this.client.startTyping(message.channel);
|
||||
const curatorRoles = Array.isArray(config.curatorRoleID)
|
||||
? config.curatorRoleID : [config.curatorRoleID];
|
||||
const members = this.client.guilds.get(config.guildID).fetchMembers();
|
||||
const members = await this.client.guilds.get(config.guildID).fetchMembers();
|
||||
for (const member of members) {
|
||||
if (curatorRoles.map(r => member.roles.includes(r)).includes(true)) {
|
||||
const account = await Util.LBRY.findOrCreateAccount(this.client, member.id);
|
||||
|
|
Loading…
Add table
Reference in a new issue