diff --git a/src/intervals/fetchMembers.ts b/src/intervals/fetchMembers.ts new file mode 100644 index 0000000..82a8f9d --- /dev/null +++ b/src/intervals/fetchMembers.ts @@ -0,0 +1,11 @@ +import { Client } from '../class'; + +let interval: NodeJS.Timeout; + +export default async function fetchMembers(client: Client): Promise { + await client.guilds.get(client.config.guildID).fetchAllMembers(); + interval = setInterval(async () => { + await client.guilds.get(client.config.guildID).fetchAllMembers(); + }, 1800000); + return interval; +}