move guild.members to cache.members

This commit is contained in:
Skillz
2020-11-18 11:58:26 -05:00
parent 65e04f656f
commit 6ecdb9fc9b
12 changed files with 140 additions and 81 deletions
+3
View File
@@ -1,5 +1,6 @@
import { Channel } from "../structures/channel.ts";
import { Guild } from "../structures/guild.ts";
import { Member } from "../structures/member.ts";
import { Message } from "../structures/message.ts";
import { PresenceUpdatePayload } from "../types/discord.ts";
import { Collection } from "./collection.ts";
@@ -9,6 +10,7 @@ export interface CacheData {
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>;
@@ -19,6 +21,7 @@ export const cache: CacheData = {
guilds: new Collection(),
channels: new Collection(),
messages: new Collection(),
members: new Collection(),
unavailableGuilds: new Collection(),
presences: new Collection(),
fetchAllMembersProcessingRequests: new Collection(),