mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
Update cache.ts
This commit is contained in:
@@ -50,12 +50,12 @@ function memberSweeper(member: DiscordenoMember) {
|
||||
if (member.id === botId) return false;
|
||||
|
||||
// Only sweep members who were not active the last 30 minutes
|
||||
return member.cachedAt - Date.now() < 1800000;
|
||||
return Date.now() - member.cachedAt < 1800000;
|
||||
}
|
||||
|
||||
function guildSweeper(guild: DiscordenoGuild) {
|
||||
// Reset activity for next interval
|
||||
if (!cache.activeGuildIds.delete(guild.id)) return false;
|
||||
if (cache.activeGuildIds.delete(guild.id)) return false;
|
||||
|
||||
guild.channels.forEach((channel) => {
|
||||
cache.channels.delete(channel.id);
|
||||
|
||||
Reference in New Issue
Block a user