Skip to content

MessageReference

MessageReference ⇐ Base

Represents a reference to a message.

Kind: global class
Extends: Base
Properties

NameTypeDescription
messageIdstring | nullThe ID of the message.
channelIdstring | nullThe ID of the channel.
guildIdstring | nullThe ID of the guild.
failIfNotExistsboolean | nullIndicates whether to fail if the entity does not exist.

new MessageReference([data], client)

Constructs a new instance of the class.

ParamTypeDescription
[data]ObjectThe data object containing the properties for the instance.
clientClientThe client object associated with the instance.

messageReference.toJSON() ⇒ Object

Converts the current object to a JSON representation.

Kind: instance method of MessageReference
Returns: Object - - The JSON representation of the object.