Message
Properties
Message.id : string
The message's id.
Message.messageType : number
The type of message the message is.
Message.content : string
The message's content.
Message.channelId : string
The id of the channel the message was sent in.
Message.author : Author
The the author of the message.
Message.embeds : {[number] : Embed}
A table of embeds that are attached to the message.
Message.reactions : {[number] : Reaction}
A table of reactions to the message.
Message.mentions : {[number] : User}
A table of users mentioned in the message.
Message.mentionRoles : {[number] : string}
A table of role ids mentioned in the message.
Message.pinned : boolean
Whether the message is pinned.
Message.mentionEveryone : boolean
Whether the message mentions @everyone.
Message.tts : boolean
Whether the message was a TTS message.
Message.timestamp : string
A timestamp of when the message was sent in ISO8601 format.
Message.flags : MessageFlags
A MessageFlags object representing the message's flags.
Message.webhookId : string
The id of the webhook that sent this message.
Methods
Message.new(data: dictionary): Message
This method returns a new Message object.
Warning
This method is not meant to be used outside Voyager's internal code.
Parameters
- data: A message object.