MessageReference
MessageReference ⇐ Base
Section titled “MessageReference ⇐ Base”Represents a reference to a message.
Kind: global class
Extends: Base
Properties
| Name | Type | Description |
|---|---|---|
| messageId | string | null | The ID of the message. |
| channelId | string | null | The ID of the channel. |
| guildId | string | null | The ID of the guild. |
| failIfNotExists | boolean | null | Indicates whether to fail if the entity does not exist. |
- MessageReference ⇐
Base
new MessageReference([data], client)
Section titled “new MessageReference([data], client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object containing the properties for the instance. |
| client | Client | The client object associated with the instance. |
messageReference.toJSON() ⇒ Object
Section titled “messageReference.toJSON() ⇒ Object”Converts the current object to a JSON representation.
Kind: instance method of MessageReference
Returns: Object - - The JSON representation of the object.