Manages API methods for messages in a guild and holds their cache.
Extends
MessageManager<true>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe 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 |
Ends a poll.
| Name | Type | Optional | Description |
|---|---|---|---|
| messageId | Snowflake | No | The id of 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) |
Fetches the users that voted for a poll answer.
| Name | Type | Optional | Description |
|---|---|---|---|
| options | FetchPollAnswerVotersOptions | No | The options for fetching the poll answer voters |
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 |