Create generic class collection
Client
Private #objectsPrivate #storageReadonly clientReadonly getReadonly updateCreate a new instance of an object
Id
Type
Instance
Context
Optional data: unknownData
Get or create
Id
Data
Unique Id
Optional attachments?: null | { Array of attachments
Id of the user or webhook that sent this message
Id of the channel this message was sent in
Optional content?: null | stringMessage content
Optional edited?: null | stringTime at which this message was last edited
Optional embeds?: null | ({ Attached embeds to this message
Optional flags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optional interactions?: { Information about how this message should be interacted with
Optional reactions?: null | string[]Reactions which should always appear and be distinct
Optional restrict_Whether reactions should be restricted to the given list
Can only be set to true if reactions list is of at least length 1
Optional masquerade?: null | { Name and / or avatar overrides for this message
Optional member?: null | { The member that sent this message
Optional mentions?: null | string[]Array of user ids mentioned in this message
Optional nonce?: null | stringUnique value generated by client sending this message
Optional pinned?: null | booleanWhether or not the message in pinned
Optional reactions?: { Hashmap of emoji IDs to array of user IDs
Optional replies?: null | string[]Array of message ids this message is replying to
Optional system?: null | { System message
Optional user?: null | { The user that sent this message
Optional webhook?: null | { The webhook that sent this message
Whether this object is new
Map the collection using a given callback
Callback
Generated using TypeDoc
Collection of Messages