search: increase time between forced full member refresh

This commit is contained in:
Dragory 2020-08-19 00:49:29 +03:00
parent 753ceda5ec
commit f093a89105
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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<string, { time: number; promise: Promise<void> }>();
export async function refreshMembersIfNeeded(guild: Guild) {