Readonly
[toPrivate
clientReadonly
sizeStatic
Readonly
[species]Ordered messages in this channel, oldest first.
Returns an iterable of entries in the map.
Unique Id
Optional
attachments?: { Array of attachments
Id of the user or webhook that sent this message
Id of the channel this message was sent in
Optional
content?: stringMessage content
Optional
edited?: stringTime at which this message was last edited
Optional
embeds?: ({ Attached embeds to this message
Optional
interactions?: { Information about how this message should be interacted with
Optional
reactions?: 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?: { Name and / or avatar overrides for this message
Optional
avatar?: stringReplace the avatar shown on this message (URL to image file)
Optional
colour?: stringReplace the display role colour shown on this message
Must have ManageRole
permission to use
Optional
name?: stringReplace the display name shown on this message
Optional
mentions?: string[]Array of user ids mentioned in this message
Optional
nonce?: stringUnique value generated by client sending this message
Optional
reactions?: { Hashmap of emoji IDs to array of user IDs
Optional
replies?: string[]Array of message ids this message is replying to
Optional
system?: { System message
Optional
webhook?: { The webhook that sent this message
Optional
avatar?: stringReturns an iterable of key, value pairs for every entry in the map.
Optional
params: { Optional
after?: stringMessage id after which messages should be fetched
Optional
before?: stringMessage id before which messages should be fetched
Optional
include_Whether to include user (and member, if server channel) objects
Optional
limit?: numberMaximum number of messages to fetch
For fetching nearby messages, this is (limit + 1)
.
Optional
nearby?: stringMessage id to search around
Specifying 'nearby' ignores 'before', 'after' and 'sort'. It will also take half of limit rounded as the limits to each side. It also fetches the message ID specified.
Optional
sort?: "Relevance" | "Latest" | "Oldest"Message sort direction
Rest
...d: [predicate: ((value: BaseMessage, index: number, array: BaseMessage[]) => unknown), thisArg?: any]Rest
...d: [predicate: ((value: BaseMessage, index: number, obj: BaseMessage[]) => unknown), thisArg?: any]Runs all of the callbacks for this emitter. (meant to run when an update occurs)
Optional
updated: BaseMessage[]The objects that caused this update.
Executes a provided function once per each key/value pair in the Map, in insertion order.
Optional
thisArg: anyReturns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
Stops listening for Map updates.
this
, useful for chaining.
The callback to stop listening for updates on.
Listen for an update to this Map.
this
, useful for chaining.
The callback to run when an update occurs.
Optional
after?: stringMessage id after which messages should be fetched
Optional
before?: stringMessage id before which messages should be fetched
Optional
include_Whether to include user (and member, if server channel) objects
Optional
limit?: numberFormat: int64
Maximum number of messages to fetch
Optional
sort?: "Relevance" | "Latest" | "Oldest"Message sort direction
By default, it will be sorted by latest.
Relevance
Rest
...d: [compareFn?: ((a: BaseMessage, b: BaseMessage) => number)]Returns an iterable of values in the map
Returns
the number of elements in the Map.