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. */