mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
add: presence sweeper
This commit is contained in:
@@ -21,7 +21,7 @@ export const cache = {
|
||||
/** All of the unavailable guilds, mapped by their Ids (id, timestamp) */
|
||||
unavailableGuilds: new Collection<bigint, number>(),
|
||||
/** All of the presence update objects received in PRESENCE_UPDATE gateway event, mapped by their user Id */
|
||||
presences: new Collection<bigint, PresenceUpdate>(),
|
||||
presences: new Collection<bigint, PresenceUpdate>([], { sweeper: { filter: () => true, interval: 300000 } }),
|
||||
fetchAllMembersProcessingRequests: new Collection<
|
||||
string,
|
||||
(value: Collection<bigint, DiscordenoMember> | PromiseLike<Collection<bigint, DiscordenoMember>>) => void
|
||||
|
||||
Reference in New Issue
Block a user