mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
fetch all guild members hehe
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user