ReadonlyclientReadonlygetReadonlyupdateProtectedaddAdd a previously hydrated object to the collection
Id
Instance
Hydrated
Add a pre-hydrated user to this collection.
A hydrated user
The user instance
Create a new instance of an object
Id
Type
Instance
Context
Optionaldata: unknownData
Delete an object
Id
Get or create
Id
Data
Optionalavatar?: Optionalbadges?: numberFormat: uint32
Bitfield of user badges
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserBadges.html
Optionalbot?: null | { owner: string }Optionaldisplay_name?: null | stringOptionalflags?: numberFormat: uint32
Enum of user flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserFlags.html
Optionalprivileged?: booleanOptionalpronouns?: null | stringOptionalrelations?: {Optionalstatus?: Check whether an id exists in the Collection
Id
Whether it exists
ProtectedhydrateHydrate a new instance of an object. This function does not add the object to the collection.
Type
Context
Data
Hydrate a new user if it is not in the collection yet. This function does not add the user to the store, make sure you call addHydratedUser afterwards. This function is particularly useful when adding many users asynchronously. See Server.syncMembers for an example of this in use.
The ID of the user
The API object for a user
Optionalavatar?: Optionalbadges?: numberFormat: uint32
Bitfield of user badges
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserBadges.html
Optionalbot?: null | { owner: string }Optionaldisplay_name?: null | stringOptionalflags?: numberFormat: uint32
Enum of user flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserFlags.html
Optionalprivileged?: booleanOptionalpronouns?: null | stringOptionalrelations?: {Optionalstatus?: The HydratedUser, or undefined if the user is in the collection
Check whether an object is partially defined
Id
Whether it is a partial
Iterable of keys in the map
Iterable
Number of stored objects
Size
Collection of Users