From fd313fbb774036ceb3820e35fae159bd96f4d041 Mon Sep 17 00:00:00 2001 From: TriForMine Date: Thu, 11 Nov 2021 12:54:54 +0100 Subject: [PATCH] Fix (cache): types --- src/cache.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cache.ts b/src/cache.ts index 8ef91e4e6..3f8baa146 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -87,12 +87,11 @@ export function createCache( activeGuildIds: new Set(), executedSlashCommands: new Set(), fetchAllMembersProcessingRequests: new Map(), + execute: async function () { + throw new Error("Async Cache requires a custom execute function to be implemented."); + } } as AsyncCache; - cache.execute = async function () { - throw new Error("Async Cache requires a custom execute function to be implemented."); - }; - return cache; } if (!options.tableCreator) options.tableCreator = createTable;