forked from Skynet/discord-bot
feat: add caching to everything, should make all member interacts faster
This commit is contained in:
parent
3abbb8d485
commit
e901f3ed74
6 changed files with 40 additions and 4 deletions
|
@ -30,7 +30,7 @@ impl EventHandler for Handler {
|
|||
// this caches members of all servers teh bot is in
|
||||
async fn cache_ready(&self, ctx: Context, guilds: Vec<GuildId>) {
|
||||
for guild in guilds {
|
||||
ctx.shard.chunk_guild(guild, Some(500), false, ChunkGuildFilter::None, None);
|
||||
ctx.shard.chunk_guild(guild, Some(2000), false, ChunkGuildFilter::None, None);
|
||||
}
|
||||
println!("Cache built successfully!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue