Manages API methods for messages in direct message channels and holds their cache.
Extends
MessageManagerThe 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 DataManagerDeletes 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.
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.
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 data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |
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 |