new MessageSyntaxTree()
- Source:
Class used between the original message and bridged message Purpose: Deconstruct messages from whatever form they come in as into a common structure for the bridge to utilize
Extends
- SyntaxTreeBase
Members
action :string
- Source:
Intended action to be performed using the syntax tree data
Type:
- string
attachments :Object
- Source:
Properties:
Name | Type | Description |
---|---|---|
files |
Array.<FileData> | Array of file data |
embeds |
Array.<MessageSyntaxTree> | Array of additional embed data |
Files and embeds' data
Type:
- Object
color :string
- Source:
Color to use for embeds. Defaults to a shade of blue ("#407ABA")
Type:
- string
name :string
- Source:
Name of the sender. Defaults to "Unknown Pupper"
Type:
- string
profilePic :string
- Source:
URL to sender's profile picture. Defaults to a link to gif profile pic of a dog
Type:
- string
unparsedText :string
- Source:
The main content of the original message in unparsed form. Defaults to "[No Message Contents]"
Type:
- string