mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
7bdbcb76d6
* Centralize types and structures * Resolve Conflict * Update cache.ts
26 lines
864 B
TypeScript
26 lines
864 B
TypeScript
import { Channel, Guild, Member, Message } from "../structures/structures.ts";
|
|
import { PresenceUpdatePayload } from "../types/types.ts";
|
|
import { Collection } from "./collection.ts";
|
|
|
|
export interface CacheData {
|
|
isReady: boolean;
|
|
guilds: Collection<string, Guild>;
|
|
channels: Collection<string, Channel>;
|
|
messages: Collection<string, Message>;
|
|
members: Collection<string, Member>;
|
|
unavailableGuilds: Collection<string, number>;
|
|
presences: Collection<string, PresenceUpdatePayload>;
|
|
fetchAllMembersProcessingRequests: Collection<string, Function>;
|
|
}
|
|
|
|
export const cache: CacheData = {
|
|
isReady: false,
|
|
guilds: new Collection(),
|
|
channels: new Collection(),
|
|
messages: new Collection(),
|
|
members: new Collection(),
|
|
unavailableGuilds: new Collection(),
|
|
presences: new Collection(),
|
|
fetchAllMembersProcessingRequests: new Collection(),
|
|
};
|