ReadonlycacheStaticdefaultShared default max size for all managers (can be changed globally).
acknowledge a message to mark it as read (not important for bots)
The message to acknowledge
Promise that resolves when the message is acknowledged
add a reaction to a message
The message to react to. Can be a Message object or a message ID.
emoji to react with. Can be a string or an Emoji object.
Promise that resolves when the reaction is added
bulk delete messages from the channel
The messages to delete. Can be an array of message IDs or a Map of message IDs to Message objects.
Promise that resolves when the messages are deleted
delete a message from the channel
The message to delete. Can be a Message object or a message ID.
Promise that resolves when the message is deleted
edit a message in the channel
The message to edit. Can be a Message object or a message ID.
The options to edit the message with. Can be a string or an object with the following properties:
Promise that resolves when the message is edited
fetch a message from the channel
The message to fetch. Can be a Message object, a message ID, or an object with the following properties:
Promise that resolves to a Message object or a Map of message IDs to Message objects
fetch a message from the channel
Optionalquery: MessageQueryOptionsPromise that resolves to a Message object or a Map of message IDs to Message objects
fetch a message from the channel
Promise that resolves to a Message object or a Map of message IDs to Message objects
remove all reactions from a message
The message to remove reactions from. Can be a Message object or a message ID.
Promise that resolves when the reactions are removed
The message to unreact. Can be a Message object or a message ID.
the emoji to unreact with. Can be a string or an Emoji object.
Optionaluser_id: stringThe user ID to remove the reaction for. If not provided, removes the reaction for the current user.
Whether to remove all of the specified reaction for the message. Defaults to false.
Promise that resolves when the reaction is removed
Optionalattachments?: Optionalcontent?: null | stringOptionaledited?: null | stringOptionalembeds?: Optionalflags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optionalinteractions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optionalreactions?: null | string[]Optionalrestrict_reactions?: booleanOptionalmasquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optionalmember?: Optionalmentions?: null | string[]Optionalnonce?: null | stringOptionalpinned?: null | booleanOptionalreactions?: { [key: string]: string[] }Optionalreplies?: null | string[]Optionalrole_mentions?: null | string[]Optionalsystem?: Optionaluser?: Optionalwebhook?: null | { avatar?: null | string; name: string }Optionalattachments?: Optionalcontent?: null | stringOptionaledited?: null | stringOptionalembeds?: Optionalflags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optionalinteractions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optionalreactions?: null | string[]Optionalrestrict_reactions?: booleanOptionalmasquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optionalmember?: Optionalmentions?: null | string[]Optionalnonce?: null | stringOptionalpinned?: null | booleanOptionalreactions?: { [key: string]: string[] }Optionalreplies?: null | string[]Optionalrole_mentions?: null | string[]Optionalsystem?: Optionaluser?: Optionalwebhook?: null | { avatar?: null | string; name: string }Optionalattachments?: Optionalcontent?: null | stringOptionaledited?: null | stringOptionalembeds?: Optionalflags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optionalinteractions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optionalreactions?: null | string[]Optionalrestrict_reactions?: booleanOptionalmasquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optionalmember?: Optionalmentions?: null | string[]Optionalnonce?: null | stringOptionalpinned?: null | booleanOptionalreactions?: { [key: string]: string[] }Optionalreplies?: null | string[]Optionalrole_mentions?: null | string[]Optionalsystem?: Optionaluser?: Optionalwebhook?: null | { avatar?: null | string; name: string }search for messages in the channel
The query to search for. Can be a string or an object with the following properties:
Promise that resolves to a Map of message IDs to Message objects
The content to send. Can be a string or an object with the following properties:
Promise that resolves to the sent message
Adjust the maximum size for this manager at runtime.
Insertion ordered cache of items this manager holds.