Thumbnail
A component for displaying small images in messages.
The Thumbnail component is used to display small images in your messages. It's commonly used as an accessory in Section components to provide visual context alongside text content.
Component Structure
A Thumbnail is defined by its image URL. The URL can point to an external image or reference an attachment in the message.
Creating a Thumbnail
To create a thumbnail, you instantiate the Thumbnail
class with the image URL:
Usage Example
Here's how you might use Thumbnail in a command:
Edit on GitHub
Last updated on