Optional
attachments?: Optional
content?: null | stringOptional
edited?: null | stringOptional
embeds?: Optional
flags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optional
interactions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optional
reactions?: null | string[]Optional
restrict_reactions?: booleanOptional
masquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optional
member?: Optional
mentions?: null | string[]Optional
nonce?: null | stringOptional
pinned?: null | booleanOptional
reactions?: { [key: string]: string[] }Optional
replies?: null | string[]Optional
system?: Optional
user?: Optional
webhook?: null | { avatar?: null | string; name: string }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
Optional
query: MessageQueryOptionsPromise 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.
Optional
user_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
Optional
attachments?: Optional
content?: null | stringOptional
edited?: null | stringOptional
embeds?: Optional
flags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optional
interactions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optional
reactions?: null | string[]Optional
restrict_reactions?: booleanOptional
masquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optional
member?: Optional
mentions?: null | string[]Optional
nonce?: null | stringOptional
pinned?: null | booleanOptional
reactions?: { [key: string]: string[] }Optional
replies?: null | string[]Optional
system?: Optional
user?: Optional
webhook?: null | { avatar?: null | string; name: string }Optional
attachments?: Optional
content?: null | stringOptional
edited?: null | stringOptional
embeds?: Optional
flags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optional
interactions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optional
reactions?: null | string[]Optional
restrict_reactions?: booleanOptional
masquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optional
member?: Optional
mentions?: null | string[]Optional
nonce?: null | stringOptional
pinned?: null | booleanOptional
reactions?: { [key: string]: string[] }Optional
replies?: null | string[]Optional
system?: Optional
user?: Optional
webhook?: null | { avatar?: null | string; name: string }Optional
attachments?: Optional
content?: null | stringOptional
edited?: null | stringOptional
embeds?: Optional
flags?: numberFormat: uint32
Bitfield of message flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html
Optional
interactions?: { reactions?: null | string[]; restrict_reactions?: boolean }Optional
reactions?: null | string[]Optional
restrict_reactions?: booleanOptional
masquerade?: null | { avatar?: null | string; colour?: null | string; name?: null | string }Optional
member?: Optional
mentions?: null | string[]Optional
nonce?: null | stringOptional
pinned?: null | booleanOptional
reactions?: { [key: string]: string[] }Optional
replies?: null | string[]Optional
system?: Optional
user?: Optional
webhook?: 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
Description
Unique Id