Fix (cache): types

This commit is contained in:
TriForMine
2021-11-11 12:54:54 +01:00
committed by GitHub
parent 370d62be04
commit fd313fbb77

View File

@@ -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;