Message

Message

Represents a Discord Message

Constructor

new Message()

Source:
Properties:
Name Type Attributes Description
attachments Array

An array of message attachments

author Object <nullable>

The message author

channel Object

The channel the message was sent in

content String

The content of the message

createdTimestamp Number <nullable>

The time the message was created in ms

editedTimestamp Number <nullable>

The time the message was edited in ms

embeds Array

An array of message embeds

id Snowflake

The id of the message

member Object <nullable>

The user in member form

mentionedEveryone Boolean

Whether the content has the @everyone ping or @here

roleMentions Array

An array of role mentions

mentions Array

An array of user mentions

pinned Boolean

Whether the message is pinned

tts Boolean

Whether the message is tts (text-to-speach)

type Number

The type of the message

Methods

patch(options) → {Promise.<Message>}

Source:

Edits a message

Parameters:
Name Type Description
options Object

Options for the message editing

Properties
Name Type Description
content String

The content of the message

embed Embed

The embed for the message

message Snowflake

The id of the message

Returns:
Type
Promise.<Message>