DiscordImageAttachment
Extends
LitElement
Constructors
new DiscordImageAttachment()
new DiscordImageAttachment():
DiscordImageAttachment
Returns
Inherited from
LitElement.constructor
Accessors
alt
The alt text to show in case the image was unable to load
Default Value
'discord attachment'
customImageElement
Indicates that you intend to use a custom image element, useful if you want to use something like `next/image`
Once this property is set, use the child element (default slot) to insert the code for the desired image component
Remarks
Setting this will disable the `url`, and `alt` properties.
height
The height of the image in pixels
url
The URL for the image attachment
Remarks
Should be a valid image URL, i.e. matching the regex /\.(bmp|jpe?g|png|gif|webp|tiff)$/i
width
The width of the image in pixels
Methods
componentWillRender()
componentWillRender():
void
Returns
void