From 924d2a82e763c2aa7f248d98f2ae4bd388d7514b Mon Sep 17 00:00:00 2001 From: ITOH Date: Thu, 29 Jul 2021 19:37:31 +0200 Subject: [PATCH] Update cache.ts --- src/cache.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/cache.ts b/src/cache.ts index 0f50f9f9e..e2e67adcb 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -53,7 +53,16 @@ export const cache = { /** Only these properties will be added to memory for your members. */ members: new Set(), /** Only these properties will be added to memory for your messages. */ - messages: new Set(), + messages: new Set< + | keyof Message + | "isBot" + | "tag" + | "authorId" + | "mentionedUserIds" + | "mentionedRoleIds" + | "mentionedChannelIds" + | "bitfield" + >(), /** Only these properties will be added to memory for your roles. */ roles: new Set(), /** Only these properties will be added to memory for your voice states. */