Message
Represents a message.
Properties
Id
A string containing the message's id.
MessageType
A number representing the message's type.
Content
A string containing the message's content.
ChannelId
A string containing the id of the channel the message was sent in.
Author
A User instance representing the author of the message.
Embeds
A table of Embed instances that represent the embeds attached to the message.
MentionedUsers
A table of User instances that represent the users mentioned in the message.
MentionedRoles
A table of strings that contain role ids which were mentioned in the message.
IsPinned
A boolean that represents whether the message is pinned.
MentionsEveryone
A boolean that represents whether the message mentions @everyone.
IsTTS
A boolean that represents whether the message is a TTS message.
CreatedAt
A DateTime instance representing when the message was created.
EditedAt
An optional DateTime instance representing when the message was last edited.
Flags
A MessageFlags instance representing the message's flags.
WebhookId
A string that contains the id of the webhook that sent this message.
JumpUrl
A string containing the jump url of this message.
Position
A optional number containing the approximate position of the message in a thread.
Constructors
new(data)
Constructs a new Message instance from a message object. Returns a new Message instance.
Internal Code warning
This method is not meant to be used outside of Voyager's internal code.
Parameters
- data : Dictionary - A message object returned by Discord.