From 69e62f39d7455255aff48906edfaf9ed75b83275 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 19 Mar 2024 23:26:53 -0400 Subject: [PATCH] fetch all guild members hehe --- Xiao.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Xiao.js b/Xiao.js index 556d4908..f53d2a8c 100644 --- a/Xiao.js +++ b/Xiao.js @@ -245,6 +245,12 @@ client.on('ready', async () => { client.botList.postCarbonStats(); client.botList.postBlistStats(); }, 1.8e+6); + + // Fetch all members + for (const guild of client.guilds) { + await guild.members.fetch(); + } + client.logger.info('[MEMBERS] Fetched all guild members.'); }); client.on('messageCreate', async msg => {