components of a message take pieces made by ChapterJS: your buttons, menus and forms, and the helpers of this page, imported from 'chapterjs'. Each is checked against the limits of Discord when it is made.
How to build a message out of these is in Embeds and layout.
Helpers
row()
linkButton()
premiumButton()
text()
section()
thumbnail()
gallery()
file()
files), shown where it is placed.
Discord documentation
separator()
container()
Options
LinkButtonOptions
A link button: what it shows, and the address it opens.MediaOptions
A picture or a video: its address, orattachment://name for a file of the message.
The address of the media: a link, or
attachment://chart.png for a file sent with the message.SeparatorOptions
How a separator looks.ContainerOptions
How a container looks.The pieces
MessageComponent
components of a message take. Buttons and menus are put in rows by the framework (5 buttons per row, a menu alone in its row); row() is there to choose. Such a message holds 5 rows at most. As soon as a message has a text, a section, a gallery, a file, a separator or a container, it is built with components only: Discord then takes no content and no embeds.
ContainerChild
Piece
Piece:
Discord documentation