Embed
Class representing an embed object for use in Discord messages.
new Embed(options)
Section titled “new Embed(options)”Create a new Embed object.
Returns: Object - - The new Embed object.
| Param | Type | Description |
|---|---|---|
| options | Object | The options to use for the Embed object. |
| [options.title] | string | The title of the embed. |
| [options.color] | number | The color of the embed. |
| [options.author] | Object | The author of the embed. |
| [options.author.name] | string | The name of the author. |
| [options.author.image] | string | The image of the author. |
| [options.url] | string | The URL of the embed. |
| [options.description] | string | The description of the embed. |
| [options.image] | string | The image of the embed. |
| [options.footer] | Object | The footer of the embed. |
| [options.footer.text] | string | The text of the footer. |
| [options.footer.image] | string | The image of the footer. |
| [options.timestamp] | string | The timestamp of the embed. |
| [options.thumbnail] | string | The thumbnail of the embed. |
| [options.fields] | Array | The fields of the embed. |