From f093a891053f4422a0065ef6376cae3441a2bb7d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 19 Aug 2020 00:49:29 +0300 Subject: [PATCH] search: increase time between forced full member refresh --- backend/src/plugins/Utility/refreshMembers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Utility/refreshMembers.ts b/backend/src/plugins/Utility/refreshMembers.ts index eecb2a7e..50803e69 100644 --- a/backend/src/plugins/Utility/refreshMembers.ts +++ b/backend/src/plugins/Utility/refreshMembers.ts @@ -1,7 +1,7 @@ import { Guild } from "eris"; -import { MINUTES, noop } from "../../utils"; +import { HOURS, noop } from "../../utils"; -const MEMBER_REFRESH_FREQUENCY = 10 * MINUTES; // How often to do a full member refresh when using commands that need it +const MEMBER_REFRESH_FREQUENCY = 1 * HOURS; // How often to do a full member refresh when using commands that need it const memberRefreshLog = new Map }>(); export async function refreshMembersIfNeeded(guild: Guild) {