Constructor
new Message() → {Message}
- Source
Returns:
- Type:
- Message
Example
const message = interaction.message; // returns the message object
const mentions = interaction.message.mentions; // returns the message mentions
Members
attachments :array
an array of attachments in the message
Type:
- array
- Source
author :User
a user object of the message author
Type:
- Source
channelId :number|null
the channel id the message was sent in
Type:
- number |
null
- Source
components :array
an array of components in the message
Type:
- array
- Source
content :string|null
the message content
Type:
- string |
null
- Source
editTimestamp :string|null
a timestamp when the message got edited if the message got edited
Type:
- string |
null
- Source
embeds :array
an array of embeds in the message
Type:
- array
- Source
flags :number
the message flags
Type:
- number
- Source
id :number|null
the message id
Type:
- number |
null
- Source
mentionEveryone :boolean
if the message mention everyone or not
Type:
- boolean
- Source
mentionRoles :array
the role mentions in the message
Type:
- array
- Source
mentions :array
an array of mentions in the message
Type:
- array
- Source
pinned :boolean
if the message is pinned or not
Type:
- boolean
- Source
timestamp :null
the timestamp the message was sent at
Type:
- null
- Source
tts :boolean
if the message is a tts message or not
Type:
- boolean
- Source
type :number
the type of the message
Type:
- number
- Source