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 : { Embed }
A table of embeds that are attached to the message.
Message.reactions : { Reaction }
A table of reactions to the message.
Deprecation Notice
This property has been deprecated due to an API change.
Message.mentions : { User }
A table of users mentioned in the message.
Message.mentionRoles : { 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.
Deprecation Notice
This property has been deprecated. Please use Message.createdAt instead.
Message.createdAt : DateTime
A datetime object representing when the message was created.
Message.flags : MessageFlags
A MessageFlags object representing the message's flags.
Message.webhookId : string
The id of the webhook that sent this message.
Message.jumpUrl : string
The jump url of the 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.