Message
Properties
<Message>.attachments
The Attachments on the Message
<Message>.author
Returns the Author of the message
<Message>.channel
The channel the message was sent
<Message>.client
The client the created the instance of the Message
<Message>.content
The content of the Message
<Message>.createdAt
The time the message was last edited at (if applicable)
This is only available on the Master Branch!
<Message>.createdTimestamp
The timestamp the message was last edited at (if applicable)
This is only available on the Master Branch!
<Message>.editedTimestamp
The timestamp of when the message was edited
<Message>.embeds
An array of embeds
<Message>.guild
The guild the message was in
<Message>.id
The message id
<Message>.member
Represents the user as a Guild Member
<Message>.mentions
An array of mentioned users
<Message>.nonce
A random number of string used to check message delivery
<Message>.pinned
Whether or not the message is pinned
<Message>.tts
Whether or not the message was Text-To-Speech
<Message>.type
The type of the message
Methods
<Message>.delete(timeout)
Delete a message
Param
Required
Default
Type
timeout
false
0
Number
<Message>.editMessage(newContent)
Edits a message
Param
Required
Default
Type
newContent
true
null
String
<Message>.pin()
Pins a Message
<Message>.unpin()
Unpins a Message
Last updated
Was this helpful?