Skip to content

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 : {[number] : Embed}

A table of embeds that are attached to the message.




ThreadMessage.reactions : {[number] : Reaction}

A table of reactions to the message.




ThreadMessage.mentions : {[number] : User}

A table of users mentioned in the message.




ThreadMessage.mentionRoles : {[number] : 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.




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.




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