Abstract
Manages API methods for Messages and holds their cache.
Extends
CachedManager< Snowflake, Message<InGuild>, MessageResolvable>Constructs a new instance of the 
MessageManager class| Name | Type | Optional | Description | 
|---|---|---|---|
| channel | TextBasedChannel | No | None | 
| iterable | Iterable<RawMessageData> | Yes | None | 
The data structure belonging to this manager.
Inherited from DataManagerPublishes a message in an announcement channel to all channels following it, even if it's not cached.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message to publish | 
Deletes a message, even if it's not cached.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message to delete | 
Edits a message, even if it's not cached.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message to edit | 
| options | string | MessagePayload | MessageEditOptions | No | The options to edit the message | 
Fetches message(s) from a channel. The returned Collection does not contain reaction users of the messages if they were not cached. Those need to be fetched separately in such a case.
Example
Example
Example
Example
| Name | Type | Optional | Description | 
|---|---|---|---|
| options | MessageResolvable | FetchMessageOptions | No | Options for fetching message(s) | 
Fetches the pinned messages of this channel and returns a collection of them. The returned Collection does not contain any reaction data of the messages. Those need to be fetched separately.
Example
| Name | Type | Optional | Description | 
|---|---|---|---|
| cache | boolean | Yes | Whether to cache the message(s) | 
Pins a message to the channel's pinned messages, even if it's not cached.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message to pin | 
| reason | string | Yes | Reason for pinning | 
Adds a reaction to a message, even if it's not cached.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message to react to | 
| emoji | EmojiIdentifierResolvable | No | The emoji to react with | 
Resolves a MessageResolvable to a Message object.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message resolvable to resolve | 
Resolves a MessageResolvable to a Message id.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message resolvable to resolve | 
Unpins a message from the channel's pinned messages, even if it's not cached.
| Name | Type | Optional | Description | 
|---|---|---|---|
| message | MessageResolvable | No | The message to unpin | 
| reason | string | Yes | Reason for unpinning |