ThreadMessage
Properties
ThreadMessage.id : string
The message's id.
ThreadMessage.messageType : number
The type of message the message is.
ThreadMessage.content : string
The message's content.
ThreadMessage.channelId : string
The id of the channel the message was sent in.
ThreadMessage.author : Author
The the author of the message.
ThreadMessage.embeds : { Embed }
A table of embeds that are attached to the message.
ThreadMessage.reactions : { Reaction }
A table of reactions to the message.
Deprecation Notice
This property has been deprecated due to an API change.
ThreadMessage.mentions : { User }
A table of users mentioned in the message.
ThreadMessage.mentionRoles : { string }
A table of role ids mentioned in the message.
ThreadMessage.pinned : boolean
Whether the message is pinned.
ThreadMessage.mentionEveryone : boolean
Whether the message mentions @everyone.
ThreadMessage.tts : boolean
Whether the message was a TTS message.
ThreadMessage.timestamp : string
A timestamp of when the message was sent in ISO8601 format.
Deprecation Notice
This property has been deprecated. Please use ThreadMessage.createdAt instead.
ThreadMessage.createdAt : DateTime
A datetime object representing when the message was created.
ThreadMessage.flags : MessageFlags
A MessageFlags object representing the message's flags.
ThreadMessage.webhookId : string
The id of the webhook that sent this message.
ThreadMessage.position: number
A number that represents the approximate position of the message in a thread.
ThreadMessage.jumpUrl : string
The jump url of the message.
Methods
ThreadMessage.new(data : dictionary) : ThreadMessage
This method returns a new ThreadMessage object.
Warning
This method is not meant to be called outside of Voyager's internal code.
Parameters
- data: A message object.