Merge pull request #12 from TriForMine/patch-13

Fix: cache
This commit is contained in:
TriForMine
2021-11-09 23:08:22 +01:00
committed by GitHub

View File

@@ -82,6 +82,9 @@ export function createCache(
presences: options.tableCreator(bot, "presences"),
// threads: options.tableCreator(bot, "threads"),
unavailableGuilds: options.tableCreator(bot, "unavailableGuilds"),
dispatchedGuildIds: new Set(),
dispatchedChannelIds: new Set(),
activeGuildIds: new Set(),
executedSlashCommands: new Set(),
fetchAllMembersProcessingRequests: new Map(),
} as AsyncCache;
@@ -103,6 +106,9 @@ export function createCache(
presences: options.tableCreator(bot, "presences"),
// threads: options.tableCreator(bot, "threads"),
unavailableGuilds: options.tableCreator(bot, "unavailableGuilds"),
dispatchedGuildIds: new Set(),
dispatchedChannelIds: new Set(),
activeGuildIds: new Set(),
executedSlashCommands: new Set(),
fetchAllMembersProcessingRequests: new Map(),
} as Cache;