Readonly
cacheStatic
defaultShared default max size for all managers (can be changed globally).
Adds a raw object to the cache, constructing the holdable class. Automatically evicts oldest entries if the max size is exceeded.
Optional
avatar?: Optional
badges?: numberFormat: uint32
Bitfield of user badges
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserBadges.html
Optional
bot?: null | { owner: string }Optional
display_name?: null | stringOptional
flags?: numberFormat: uint32
Enum of user flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserFlags.html
Optional
privileged?: booleanOptional
relations?: {Optional
status?: Remove an entry by id.
The user to fetch
A promise that resolves when the user is fetched
get a user form cache
The user to resolve
The user or null if it cannot be resolved
get a user form cache
The user to resolve
Optional
avatar?: Optional
badges?: numberFormat: uint32
Bitfield of user badges
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserBadges.html
Optional
bot?: null | { owner: string }Optional
display_name?: null | stringOptional
flags?: numberFormat: uint32
Enum of user flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserFlags.html
Optional
privileged?: booleanOptional
relations?: {Optional
status?: The user or null if it cannot be resolved
get a user id form cache
The user to resolve
The user id or null if it cannot be resolved
Adjust the maximum size for this manager at runtime.
Insertion ordered cache of items this manager holds.