diff options
Diffstat (limited to 'src/tasks/updateCache.ts')
-rw-r--r-- | src/tasks/updateCache.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tasks/updateCache.ts b/src/tasks/updateCache.ts index 95ceca1..910088f 100644 --- a/src/tasks/updateCache.ts +++ b/src/tasks/updateCache.ts @@ -13,13 +13,13 @@ export class UpdateCacheTask extends BushTask { } public override async exec(): Promise<void> { await UpdateCacheTask.updateGlobalCache(client); - await UpdateCacheTask.updateGuildCache(client); + await UpdateCacheTask.#updateGuildCache(client); void client.logger.verbose(`UpdateCache`, `Updated cache.`); } public static async init(client: BushClient): Promise<void> { await UpdateCacheTask.updateGlobalCache(client); - await UpdateCacheTask.updateGuildCache(client); + await UpdateCacheTask.#updateGuildCache(client); } private static async updateGlobalCache(client: BushClient): Promise<void> { @@ -41,7 +41,7 @@ export class UpdateCacheTask extends BushTask { } } - private static async updateGuildCache(client: BushClient): Promise<void> { + static async #updateGuildCache(client: BushClient): Promise<void> { const rows = await Guild.findAll(); for (const row of rows) { client.cache.guilds.set(row.id, row.toJSON() as Guild); |