import { BotTask, Time, updateEveryCache } from '#lib'; export default class UpdateCacheTask extends BotTask { public constructor() { super('updateCache', { delay: 5 * Time.Minute, runOnStart: false // done in preinit task }); } public async exec() { await updateEveryCache(this.client); void this.client.logger.verbose(`UpdateCache`, `Updated cache.`); } }