3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 00:05:04 +00:00

search: increase time between forced full member refresh

This commit is contained in:
Dragory 2020-08-19 00:49:29 +03:00
parent a39bdb559f
commit 0968fc4511

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) {