Skip to content

Commit

Permalink
fix(cache-customization): Access client from callback parameter (#1540
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sdanialraza authored Dec 29, 2023
1 parent 0b873be commit 59aa06b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guide/miscellaneous/cache-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const client = new Client({
ReactionManager: 0,
GuildMemberManager: {
maxSize: 200,
keepOverLimit: member => member.id === client.user.id,
keepOverLimit: member => member.id === member.client.user.id,
},
}),
});
Expand Down Expand Up @@ -81,11 +81,11 @@ const client = new Client({
...Options.DefaultSweeperSettings,
messages: {
interval: 3_600, // Every hour.
lifetime: 1_800, // Remove messages older than 30 minutes.
lifetime: 1_800, // Remove messages older than 30 minutes.
},
users: {
interval: 3_600, // Every hour.
filter: () => user => user.bot && user.id !== client.user.id, // Remove all bots.
filter: () => user => user.bot && user.id !== user.client.user.id, // Remove all bots.
},
},
});
Expand Down

0 comments on commit 59aa06b

Please sign in to comment.