community-relations/src/intervals/fetchMembers.ts

12 lines
384 B
TypeScript
Raw Normal View History

2020-07-06 03:15:06 -04:00
import { Client } from '../class';
let interval: NodeJS.Timeout;
export default async function fetchMembers(client: Client): Promise<NodeJS.Timeout> {
2020-07-19 20:08:55 -04:00
// await client.guilds.get(client.config.guildID)?.fetchAllMembers();
2020-07-06 03:15:06 -04:00
interval = setInterval(async () => {
// await client.guilds.get(client.config.guildID).fetchAllMembers();
}, 1800000);
return interval;
}