Embeds
Embeds are used to display rich content in messages.
Embeds are used to display rich content in messages. You can create them in one or two ways:
Raw Objects
If you have a one-off embed that doesn't need its own class, you can directly use the Embed class.
Extended Classes
You can setup a generic Embed that you can use in multiple places by extending the Embed
class, and adding properties there or in the constructor.
Here we have created an embed with a title, description, and URL. You can use this embed in a message by using the Embed
class.
Example Embed
Here is an example embed with all the properties you can use:
Edit on GitHub
Last updated on