Interface CollectionLimitsOptions

Hierarchy

  • CollectionLimitsOptions

Properties

auditLogEntries?: number

The maximum number of audit log entries to keep cached. This applies to all guilds. Entries are only cached if recieved via the GUILD_AUDIT_LOG_ENTRY_CREATE gateway event.

Default Value

50

members?: number | Record<string, number>

The maximum number of members to cache. A number to apply to all guilds individually, or a dictionary of guild IDs to member limits. The key unknown can be used to set the limit for all guilds not specified.

Note: If you request members from the gateway, this will be increased (on the specific guild) as needed to accommodate those members.

Default Value

Infinity

messages?: number

The maximum number of messages to cache.

Default Value

100

users?: number

The maximum number of users to cache globally.

Default Value

Infinity