v5.0.0
$cacheMembers
Updates the cache for the current guild members
This function is responsible for saving each new user that has not been registered before in your bot's database.

Fields

This function has 2 optional fields
  1. 1.
    Guild ID (Optional)
  2. 2.
    Return Count (Optional)
Raw Usage: $cacheMembers[guildID (optional);returnCount (optional)]

Options

  • Guild ID - The guild we're caching the members for
  • Return Count - The amount of members cached

Usage

Without optional fields
1
bot.command({
2
name: "update",
3
code: `
4
Members cached.
5
$cacheMembers
6
`
7
});
Copied!
With optional fields
1
bot.command({
2
name: "update",
3
code: `
4
$cacheMembers[773352845738115102;yes] members cached.
5
6
`
7
});
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub